|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RemoteOutputStream
Remote interface which allows exporting an OutputStream-like interface over
the network. When combined with the RemoteOutputStreamServer
subclasses on the server side and the RemoteOutputStreamClient
on
the client side, this class provides a true remote OutputStream (in other
words, should never be used alone, use the utility classes).
Note that all methods on this interface are idempotent (when used correctly), and can therefore be retried as necessary in the face of RemoteExceptions.
An actual instance of this class is not intended for use by more than one client, and should be treated in a similar manner to an "un-synchronized" local interface.
Method Summary | |
---|---|
void |
close(boolean writeSuccess)
Closes the output stream and releases the resources for this server object. |
void |
flush()
Flushes the output stream and forces as much as possible of any buffered bytes to be written out. |
boolean |
usingGZIPCompression()
Returns true if the stream is using GZIP compression over
the wire. |
void |
writePacket(byte[] packet,
int packetId)
Writes the next chunk of data to this stream. |
Method Detail |
---|
boolean usingGZIPCompression() throws IOException, RemoteException
true
if the stream is using GZIP compression over
the wire.
true
iff the stream data is compressed,
false
otherwise
IOException
RemoteException
void close(boolean writeSuccess) throws IOException, RemoteException
writeSuccess
- true
iff all data was sent successfully
from the client, false
otherwise
IOException
RemoteException
void flush() throws IOException, RemoteException
flush
in interface Flushable
IOException
RemoteException
void writePacket(byte[] packet, int packetId) throws IOException, RemoteException
packet
- iff the packetId was the same one from the last read call,
this chunk of data is ignored. Otherwise, writes this new
chunk of data to the stream.packetId
- client specified id for this packet
IOException
RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |