|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glassfish.grizzly.memory.CompositeBuffer
public abstract class CompositeBuffer
Nested Class Summary | |
---|---|
static interface |
CompositeBuffer.BulkOperation
Bulk Buffer operation, responsible for byte-by-byte Buffer processing. |
static interface |
CompositeBuffer.Setter
Setter. |
Constructor Summary | |
---|---|
CompositeBuffer()
|
Method Summary | |
---|---|
abstract boolean |
allowInternalBuffersDispose()
|
abstract void |
allowInternalBuffersDispose(boolean allow)
|
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; |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.glassfish.grizzly.Buffer |
---|
allowBufferDispose, allowBufferDispose, 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, 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 |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface org.glassfish.grizzly.asyncqueue.WritableMessage |
---|
isExternal, release |
Methods inherited from interface org.glassfish.grizzly.Appendable |
---|
append |
Constructor Detail |
---|
public CompositeBuffer()
Method Detail |
---|
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 abstract CompositeBuffer prepend(Buffer buffer)
Buffer
prepend
in interface Buffer
public abstract Object[] underlying()
Buffer
underlying
in interface Buffer
public abstract void removeAll()
Buffer
s, without disposing
public 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
public abstract boolean replace(Buffer oldBuffer, Buffer newBuffer)
Buffer
with another one.
oldBuffer
- the Buffer
to replace.newBuffer
- the new Buffer
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |