Interface WriteBuffer.Sink
- Enclosing class:
WriteBuffer
public static interface WriteBuffer.Sink
Interface implemented by clients of the WriteBuffer to enable data to be written back out from the buffer.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanwriteFromBuffer(ByteBuffer buffer, boolean block) Writes data from a ByteBuffer to the underlying output.
-
Method Details
-
writeFromBuffer
Writes data from a ByteBuffer to the underlying output.- Parameters:
buffer- The buffer to write fromblock- Whether to use blocking writes- Returns:
trueif data is left unwritten,falseotherwise- Throws:
IOException- If an I/O error occurs
-