jist.runtime
Interface RemoteIO.RemoteInputStreamRemote

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
RemoteIO.RemoteInputStreamSender, RemoteIO.RemoteInputStreamSenderLocal
Enclosing class:
RemoteIO

public static interface RemoteIO.RemoteInputStreamRemote
extends java.rmi.Remote

Interface for remote input stream.


Method Summary
 void close()
          Close the underlying remote input stream.
 int read()
          Read a byte.
 byte[] read(int len)
          Read a sequence of bytes.
 

Method Detail

read

int read()
         throws java.io.IOException,
                java.rmi.RemoteException
Read a byte.

Returns:
byte read; -1 for EOF
Throws:
java.io.IOException - underlying input/output error
java.rmi.RemoteException - rpc failure

read

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

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

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

Throws:
java.io.IOException - underlying input/output error
java.rmi.RemoteException - rpc failure