private static class DefaultDataBuffer.SlicedDefaultDataBuffer extends DefaultDataBuffer
Constructor and Description |
---|
SlicedDefaultDataBuffer(java.nio.ByteBuffer byteBuffer,
DefaultDataBufferFactory dataBufferFactory,
int length) |
Modifier and Type | Method and Description |
---|---|
DataBuffer |
capacity(int newCapacity)
Sets the number of bytes that this buffer can contain.
|
asByteBuffer, asByteBuffer, asInputStream, asOutputStream, capacity, equals, factory, fromEmptyByteBuffer, fromFilledByteBuffer, getNativeBuffer, hashCode, indexOf, lastIndexOf, read, read, read, readableByteCount, readPosition, readPosition, slice, toString, writableByteCount, write, write, write, write, write, writePosition, writePosition
SlicedDefaultDataBuffer(java.nio.ByteBuffer byteBuffer, DefaultDataBufferFactory dataBufferFactory, int length)
public DataBuffer capacity(int newCapacity)
DataBuffer
capacity
in interface DataBuffer
capacity
in class DefaultDataBuffer
newCapacity
- the new capacity