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>
UnpooledStreamBuffer
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.officefloor.server.stream.StreamBuffer
StreamBuffer.FileBuffer
-
-
Field Summary
-
Fields inherited from class net.officefloor.server.stream.StreamBuffer
fileBuffer, next, pooledBuffer, unpooledByteBuffer
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
release()
Releases thisStreamBuffer
for re-use.boolean
write(byte datum)
Writes a byte to the pooled buffer.int
write(byte[] data, int offset, int length)
Writes the data to the pooled buffer.-
Methods inherited from class net.officefloor.server.stream.StreamBuffer
getAppendable, getWriteStreamBuffer, write, write, write, write, write, write, writeByte
-
-
-
-
Method Detail
-
write
public boolean write(byte datum)
Description copied from class:StreamBuffer
Writes a byte to the pooled buffer.- Specified by:
write
in classStreamBuffer<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 classStreamBuffer<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 thisStreamBuffer
for re-use.- Specified by:
release
in classStreamBuffer<B>
-
-