Class AbstractStreamBufferPool.UnpooledStreamBuffer

java.lang.Object
net.officefloor.server.stream.StreamBuffer<B>
net.officefloor.server.stream.impl.AbstractStreamBufferPool.UnpooledStreamBuffer
Enclosing class:
AbstractStreamBufferPool<B>

protected class AbstractStreamBufferPool.UnpooledStreamBuffer extends StreamBuffer<B>
Unpooled StreamBuffer.
  • Method Details

    • write

      public boolean write(byte datum)
      Description copied from class: StreamBuffer
      Writes a byte to the pooled buffer.
      Specified by:
      write in class StreamBuffer<B>
      Parameters:
      datum - Byte value.
      Returns:
      true if written value to buffer. false indicates the pooled buffer is full.
    • write

      public int write(byte[] data, int offset, int length)
      Description copied from class: StreamBuffer
      Writes the data to the pooled buffer.
      Specified by:
      write in class StreamBuffer<B>
      Parameters:
      data - Data to write to the pooled buffer.
      offset - Offset within the data to write the data.
      length - Length of data to write the data.
      Returns:
      Number of bytes written.
    • release

      public void release()
      Description copied from class: StreamBuffer
      Releases this StreamBuffer for re-use.
      Specified by:
      release in class StreamBuffer<B>