public interface BaseStream
Modifier and Type | Method and Description |
---|---|
boolean |
continueOperation(boolean sendEmpty,
boolean inStream)
Continues the operation since there is no data to read.
|
void |
ensureNotDone()
Verifies that additional information may be sent.
|
void |
ensureOpen()
Verifies that this object is still open.
|
void |
streamClosed(boolean inStream)
Called when the output or input stream is closed.
|
void ensureOpen() throws IOException
IOException
- if the object is closedvoid ensureNotDone() throws IOException
IOException
- if the operation is completedboolean continueOperation(boolean sendEmpty, boolean inStream) throws IOException
sendEmpty
- true
if the operation should send an empty
packet or not send anything if there is no data to sendinStream
- true
if the stream is input stream or is
output streamtrue
if the operation was completed;
false
if no operation took placeIOException
- if an IO error occursvoid streamClosed(boolean inStream) throws IOException
inStream
- true
if the input stream is closed;
false
if the output stream is closedIOException
- if an IO error occurs