jist.runtime
Class RemoteIO.RemoteOutputStreamReceiverLocal

java.lang.Object
  extended by jist.runtime.RemoteIO.RemoteOutputStreamReceiverLocal
All Implemented Interfaces:
java.rmi.Remote, RemoteIO.RemoteOutputStreamRemote
Enclosing class:
RemoteIO

public static class RemoteIO.RemoteOutputStreamReceiverLocal
extends java.lang.Object
implements RemoteIO.RemoteOutputStreamRemote

LOCAL remote output stream.


Constructor Summary
RemoteIO.RemoteOutputStreamReceiverLocal(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.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteIO.RemoteOutputStreamReceiverLocal

public RemoteIO.RemoteOutputStreamReceiverLocal(java.io.OutputStream lout)
Create a new remote output stream server.

Parameters:
lout - underlying destination output stream
Method Detail

finalize

public void finalize()

Overrides:
finalize in class java.lang.Object

write

public void write(int b)
           throws java.io.IOException
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
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
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
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
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