jist.runtime
Class RemoteIO.RemoteInputStreamSenderLocal

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

public static class RemoteIO.RemoteInputStreamSenderLocal
extends java.lang.Object
implements RemoteIO.RemoteInputStreamRemote

LOCAL remote input stream.


Constructor Summary
RemoteIO.RemoteInputStreamSenderLocal(java.io.InputStream lin)
          Create a new remote input stream server.
 
Method Summary
 void close()
          Close the underlying remote input stream.
 void finalize()
          
 int read()
          Read a byte.
 byte[] read(int len)
          Read a sequence of bytes.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteIO.RemoteInputStreamSenderLocal

public RemoteIO.RemoteInputStreamSenderLocal(java.io.InputStream lin)
Create a new remote input stream server.

Parameters:
lin - underlying source input stream
Method Detail

finalize

public void finalize()

Overrides:
finalize in class java.lang.Object

read

public int read()
         throws java.io.IOException
Read a byte.

Specified by:
read in interface RemoteIO.RemoteInputStreamRemote
Returns:
byte read; -1 for EOF
Throws:
java.io.IOException - underlying input/output error
java.rmi.RemoteException - rpc failure

read

public byte[] read(int len)
            throws java.io.IOException
Read a sequence of bytes.

Specified by:
read in interface RemoteIO.RemoteInputStreamRemote
Parameters:
len - number of bytes to read
Returns:
array of bytes read, less than or equal to len
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 input stream.

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