Back to the RMI Plug-in for Eclipse

demo.rmi.filesystem.common
Interface IRemoteInputStream

All Superinterfaces:
Remote
All Known Implementing Classes:
RemoteInputStreamImpl

public interface IRemoteInputStream
extends Remote

This interface defines a remote input stream that can be used to read from an IRemoteFile. The interface mimics the InputStream class with a single difference in the read(int) method.

Author:
Genady Beryozkin, rmi-info@genady.net

Method Summary
 int available()
           
 void close()
           
 void mark(int readlimit)
           
 boolean markSupported()
           
 int read()
          Read a single byte from the stream.
 byte[] read(int count)
          Read count bytes from the stream.
 void reset()
           
 long skip(long n)
           
 

Method Detail

available

int available()
              throws RemoteException
Throws:
RemoteException
See Also:
InputStream.available()

close

void close()
           throws RemoteException
Throws:
RemoteException
See Also:
InputStream.close()

mark

void mark(int readlimit)
          throws RemoteException
Throws:
RemoteException
See Also:
InputStream.mark(int)

markSupported

boolean markSupported()
                      throws RemoteException
Throws:
RemoteException
See Also:
InputStream.markSupported()

read

int read()
         throws RemoteException
Read a single byte from the stream. Returns -1 on EOF.

Throws:
RemoteException
See Also:
InputStream.read()

read

byte[] read(int count)
            throws RemoteException
Read count bytes from the stream. We can't have the same signature as InputStream.read(byte[], int, int) because if the array is an argument it won't be copied back to the client.

Parameters:
count - the maximum number of bytes to read.
Returns:
the data that was read or null if EOF reached.
Throws:
RemoteException

reset

void reset()
           throws RemoteException
Throws:
RemoteException
See Also:
InputStream.reset()

skip

long skip(long n)
          throws RemoteException
Throws:
RemoteException
See Also:
InputStream.skip(long)

Back to the RMI Plug-in for Eclipse


© 2002-12 Genady Beryozkin, rmi-info@genady.net. Read our Privacy policy. Hosted on RimuHosting. Visit Javalobby.