public interface BinaryOutput
BinarySerializator
.Modifier and Type | Method and Description |
---|---|
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 . |
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 bufferjava.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