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 Detail

      • writeFromBuffer

        boolean writeFromBuffer​(java.nio.ByteBuffer buffer,
                                boolean block)
                         throws java.io.IOException
        Writes data from a ByteBuffer to the underlying output.
        Parameters:
        buffer - The buffer to write from
        block - Whether to use blocking writes
        Returns:
        true if data is left unwritten, false otherwise
        Throws:
        java.io.IOException - If an I/O error occurs