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
Buffers 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
Buffers will be disposed. |
CompositeBuffer |
disposeOrder(CompositeBuffer.DisposeOrder disposeOrder)
Sets the order in which internal
Buffers 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
Buffers, 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, waitallowBufferDispose, 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, tryDisposecompareToisExternal, releaseprotected 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()
Buffers will be disposed.public CompositeBuffer disposeOrder(CompositeBuffer.DisposeOrder disposeOrder)
Buffers will be disposed.public abstract CompositeBuffer append(Buffer buffer)
public abstract CompositeBuffer prepend(Buffer buffer)
Bufferpublic abstract Object[] underlying()
Bufferunderlying in interface Bufferpublic abstract void removeAll()
Buffers, 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.BulkOperationpublic 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.BulkOperationCopyright © 2014 Oracle Corporation. All Rights Reserved.