Modifier and Type | Method and Description |
---|---|
void |
close() |
static RemoteOutput |
convert(java.io.OutputStream output)
Converts an
OutputStream to a RemoteOutput . |
static java.io.OutputStream |
convert(RemoteOutput output)
Converts a
RemoteOutput to an OutputStream . |
void |
flush() |
static java.io.OutputStream |
wrap(java.io.OutputStream output)
Returns a serializable wrapper that holds a remote reference to the given
OutputStream . |
void |
write(byte[] bytes)
Write a block of bytes to the remote output.
|
void |
write(int b)
Write a byte to the remote output.
|
static java.io.OutputStream wrap(java.io.OutputStream output)
OutputStream
.output
- the OutputStream
to wrapOutputStream
static java.io.OutputStream convert(RemoteOutput output)
RemoteOutput
to an OutputStream
.output
- the RemoteOutput
to convertOutputStream
that wraps the given RemoteOutput
static RemoteOutput convert(java.io.OutputStream output)
OutputStream
to a RemoteOutput
.output
- the OutputStream
to convertRemoteOutput
that wraps the given OutputStream
void write(int b) throws java.io.IOException, RemoteException
b
- the byte to writejava.io.IOException
- if an I/O error occursRemoteException
- if a RMI failure occursvoid write(byte[] bytes) throws java.io.IOException, RemoteException
bytes
- the bytes to writejava.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
void flush() throws java.io.IOException
flush
in interface java.io.Flushable
java.io.IOException