Modifier and Type | Method and Description |
---|---|
int |
available()
Gets an estimate of the available bytes.
|
void |
close() |
static RemoteInput |
convert(java.io.InputStream input)
Converts an
InputStream to a RemoteInput . |
static java.io.InputStream |
convert(RemoteInput input)
Converts a
RemoteInput to an InputStream . |
int |
read()
Read data from the remote byte input.
|
byte[] |
read(int len)
Read data from the remote byte input.
|
static java.io.InputStream |
wrap(java.io.InputStream input)
Returns a serializable wrapper that holds a remote reference to the given
InputStream . |
static java.io.InputStream wrap(java.io.InputStream input)
InputStream
.input
- the InputStream
to wrapInputStream
static java.io.InputStream convert(RemoteInput input)
RemoteInput
to an InputStream
.input
- the RemoteInput
to convertInputStream
that wraps the given RemoteInput
static RemoteInput convert(java.io.InputStream input)
InputStream
to a RemoteInput
.input
- the InputStream
to convertRemoteInput
that wraps the given InputStream
int read() throws java.io.IOException, RemoteException
java.io.IOException
- if an I/O error occursRemoteException
- if a RMI failure occursbyte[] read(int len) throws java.io.IOException, RemoteException
len
- the maximum number of bytes to readjava.io.IOException
- if an I/O error occursRemoteException
- if a RMI failure occursint available() throws java.io.IOException, RemoteException
java.io.IOException
- if an I/O error occursRemoteException
- if a RMI failure occursvoid close() throws java.io.IOException
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
java.io.IOException