jist.runtime
Class RemoteIO.RemoteOutputStreamReceiver

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by jist.runtime.RemoteIO.RemoteOutputStreamReceiver
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, RemoteIO.RemoteOutputStreamRemote
Enclosing class:
RemoteIO

public static class RemoteIO.RemoteOutputStreamReceiver
extends java.rmi.server.UnicastRemoteObject
implements RemoteIO.RemoteOutputStreamRemote

Remote-side of remote output stream.

See Also:
Serialized Form

Field Summary
private  java.io.OutputStream lout
          Underlying output stream, destination of all data.
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
RemoteIO.RemoteOutputStreamReceiver(java.io.OutputStream lout)
          Create a new remote output stream server.
 
Method Summary
 void close()
          Close the underlying remote output stream.
 void finalize()
          
 void flush()
          Flush output.
 void write(byte[] b)
          Write an array of bytes.
 void write(byte[] b, int off, int len)
          Write an array of bytes.
 void write(int b)
          Write a byte.
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

lout

private java.io.OutputStream lout
Underlying output stream, destination of all data.

Constructor Detail

RemoteIO.RemoteOutputStreamReceiver

public RemoteIO.RemoteOutputStreamReceiver(java.io.OutputStream lout)
                                    throws java.rmi.RemoteException
Create a new remote output stream server.

Parameters:
lout - underlying destination output stream
Throws:
java.rmi.RemoteException - rpc failure
Method Detail

finalize

public void finalize()

Overrides:
finalize in class java.lang.Object

write

public void write(int b)
           throws java.io.IOException,
                  java.rmi.RemoteException
Write a byte.

Specified by:
write in interface RemoteIO.RemoteOutputStreamRemote
Parameters:
b - byte to write
Throws:
java.io.IOException - underlying input/output error
java.rmi.RemoteException - rpc failure

write

public void write(byte[] b)
           throws java.io.IOException,
                  java.rmi.RemoteException
Write an array of bytes.

Specified by:
write in interface RemoteIO.RemoteOutputStreamRemote
Parameters:
b - array of bytes
Throws:
java.io.IOException - underlying input/output error
java.rmi.RemoteException - rpc failure

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException,
                  java.rmi.RemoteException
Write an array of bytes.

Specified by:
write in interface RemoteIO.RemoteOutputStreamRemote
Parameters:
b - array of bytes
off - starting offset within array
len - number of bytes to write
Throws:
java.io.IOException - underlying input/output error
java.rmi.RemoteException - rpc failure

flush

public void flush()
           throws java.io.IOException,
                  java.rmi.RemoteException
Flush output.

Specified by:
flush in interface RemoteIO.RemoteOutputStreamRemote
Throws:
java.io.IOException - underlying input/output error
java.rmi.RemoteException - rpc failure

close

public void close()
           throws java.io.IOException,
                  java.rmi.RemoteException
Close the underlying remote output stream.

Specified by:
close in interface RemoteIO.RemoteOutputStreamRemote
Throws:
java.io.IOException - underlying input/output error
java.rmi.RemoteException - rpc failure