Package org.apache.tomcat.util.net
Interface WriteBuffer.Sink
-
- Enclosing class:
- WriteBuffer
public static interface WriteBuffer.SinkInterface implemented by clients of the WriteBuffer to enable data to be written back out from the buffer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanwriteFromBuffer(java.nio.ByteBuffer buffer, boolean block)Writes data from a ByteBuffer to the underlying output.
-
-
-
Method Detail
-
writeFromBuffer
boolean writeFromBuffer(java.nio.ByteBuffer buffer, boolean block) throws java.io.IOExceptionWrites 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:
java.io.IOException- If an I/O error occurs
-
-