public abstract class CompositeBuffer extends Object implements Buffer
Modifier and Type | Class and Description |
---|---|
static interface |
CompositeBuffer.BulkOperation
Bulk Buffer operation, responsible for byte-by-byte Buffer processing.
|
static class |
CompositeBuffer.DisposeOrder
The order in which internal
Buffer s will be disposed. |
static interface |
CompositeBuffer.Setter
Setter.
|
Modifier and Type | Field and Description |
---|---|
protected CompositeBuffer.DisposeOrder |
disposeOrder |
Constructor and Description |
---|
CompositeBuffer() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
allowInternalBuffersDispose() |
abstract void |
allowInternalBuffersDispose(boolean allow) |
abstract CompositeBuffer |
append(Buffer buffer) |
abstract int |
bulk(CompositeBuffer.BulkOperation operation)
Iterates over
Buffer bytes from Buffer.position() to Buffer.limit()
and lets CompositeBuffer.BulkOperation examine/change the buffer content; |
abstract int |
bulk(CompositeBuffer.BulkOperation operation,
int position,
int limit)
Iterates over
Buffer bytes from position to limit
and lets CompositeBuffer.BulkOperation examine/change the buffer content; |
CompositeBuffer.DisposeOrder |
disposeOrder()
Returns the order in which internal
Buffer s will be disposed. |
CompositeBuffer |
disposeOrder(CompositeBuffer.DisposeOrder disposeOrder)
Sets the order in which internal
Buffer s will be disposed. |
static CompositeBuffer |
newBuffer()
Construct CompositeBuffer.
|
static CompositeBuffer |
newBuffer(MemoryManager memoryManager) |
static CompositeBuffer |
newBuffer(MemoryManager memoryManager,
Buffer... buffers) |
static CompositeBuffer |
newBuffer(MemoryManager memoryManager,
Buffer[] buffers,
boolean isReadOnly) |
abstract CompositeBuffer |
prepend(Buffer buffer)
Prepend data from header.position() to header.limit() to the
current buffer.
|
abstract void |
removeAll()
Removes underlying
Buffer s, without disposing |
abstract boolean |
replace(Buffer oldBuffer,
Buffer newBuffer)
Replace one internal
Buffer with another one. |
abstract Object[] |
underlying()
Return the underlying buffer
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
allowBufferDispose, allowBufferDispose, array, arrayOffset, asReadOnlyBuffer, capacity, clear, compact, dispose, duplicate, flip, get, get, get, get, get, get, getChar, getChar, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getShort, getShort, hasArray, hasRemaining, isComposite, isDirect, isReadOnly, limit, limit, mark, order, order, position, position, put, put, put, put, put, put, put, put, put8BitString, putChar, putChar, putDouble, putDouble, putFloat, putFloat, putInt, putInt, putLong, putLong, putShort, putShort, remaining, reset, rewind, shrink, slice, slice, split, toBufferArray, toBufferArray, toBufferArray, toBufferArray, toByteBuffer, toByteBuffer, toByteBufferArray, toByteBufferArray, toByteBufferArray, toByteBufferArray, toStringContent, toStringContent, toStringContent, trim, tryDispose
compareTo
isExternal, release
protected CompositeBuffer.DisposeOrder disposeOrder
public static CompositeBuffer newBuffer()
public static CompositeBuffer newBuffer(MemoryManager memoryManager)
public static CompositeBuffer newBuffer(MemoryManager memoryManager, Buffer... buffers)
public static CompositeBuffer newBuffer(MemoryManager memoryManager, Buffer[] buffers, boolean isReadOnly)
public CompositeBuffer.DisposeOrder disposeOrder()
Buffer
s will be disposed.CompositeBuffer.DisposeOrder
public CompositeBuffer disposeOrder(CompositeBuffer.DisposeOrder disposeOrder)
Buffer
s will be disposed.disposeOrder
- public abstract CompositeBuffer append(Buffer buffer)
public abstract CompositeBuffer prepend(Buffer buffer)
Buffer
public abstract Object[] underlying()
Buffer
underlying
in interface Buffer
public abstract void removeAll()
Buffer
s, without disposingpublic abstract void allowInternalBuffersDispose(boolean allow)
public abstract boolean allowInternalBuffersDispose()
public abstract int bulk(CompositeBuffer.BulkOperation operation)
Buffer
bytes from Buffer.position()
to Buffer.limit()
and lets CompositeBuffer.BulkOperation
examine/change the buffer content;operation
- CompositeBuffer.BulkOperation
public abstract int bulk(CompositeBuffer.BulkOperation operation, int position, int limit)
Buffer
bytes from position to limit
and lets CompositeBuffer.BulkOperation
examine/change the buffer content;operation
- CompositeBuffer.BulkOperation
Copyright © 2015 Oracle Corporation. All rights reserved.