|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BinaryOutput
Interface for classes that can write a binary data.
Such data can be provided by a BinarySerializator
.
Method Summary | |
---|---|
void |
flush()
Flushes this output and forces any buffered output bytes to be written out to the flushChannel. |
java.nio.ByteBuffer |
prepareOutput(int minBytes)
Returns a buffer that allows to write at least minBytes . |
Method Detail |
---|
java.nio.ByteBuffer prepareOutput(int minBytes) throws java.io.IOException
minBytes
.
If the buffer with the required space cannot be provided, an
IOException
is thrown. Note that the returned
buffer can provide more than minBytes
.
minBytes
- the minimal number of bytes that must be available for writing into the buffer
java.io.IOException
- if there was an error while preparing a buffer for minBytes
bytesvoid flush() throws java.io.IOException
java.io.IOException
- if there was an error using flushChannel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |