public class ReadOnlyHeapBuffer extends HeapBuffer
ReadOnlyHeapBuffer based on the grizzly implementation so that we can obtain the ByteBuffer's from the mule
memory management.org.glassfish.grizzly.memory.ReadOnlyHeapBuffer}allowBufferDispose, bigEndian, byteBuffer, cap, DEBUG_MODE, disposeStackTrace, heap, lim, mark, offset, order, pos, readOnly| Modifier and Type | Method and Description |
|---|---|
HeapBuffer |
asReadOnlyBuffer() |
protected HeapBuffer |
createHeapBuffer(int offset,
int capacity)
Create a new
HeapBuffer based on the current heap. |
boolean |
isReadOnly() |
HeapBuffer |
prepend(org.glassfish.grizzly.Buffer header) |
HeapBuffer |
put(org.glassfish.grizzly.Buffer src) |
HeapBuffer |
put(org.glassfish.grizzly.Buffer src,
int position,
int length) |
HeapBuffer |
put(byte b) |
HeapBuffer |
put(byte[] src) |
HeapBuffer |
put(byte[] src,
int offset,
int length) |
org.glassfish.grizzly.Buffer |
put(ByteBuffer src) |
org.glassfish.grizzly.Buffer |
put(ByteBuffer src,
int position,
int length) |
HeapBuffer |
put(int index,
byte b) |
HeapBuffer |
putChar(char value) |
HeapBuffer |
putChar(int index,
char value) |
HeapBuffer |
putDouble(double value) |
HeapBuffer |
putDouble(int index,
double value) |
HeapBuffer |
putFloat(float value) |
HeapBuffer |
putFloat(int index,
float value) |
HeapBuffer |
putInt(int value) |
HeapBuffer |
putInt(int index,
int value) |
HeapBuffer |
putLong(int index,
long value) |
HeapBuffer |
putLong(long value) |
HeapBuffer |
putShort(int index,
short value) |
HeapBuffer |
putShort(short value) |
ByteBuffer |
toByteBuffer() |
ByteBuffer |
toByteBuffer(int position,
int limit) |
allowBufferDispose, allowBufferDispose, array, arrayOffset, capacity, checkDispose, clear, compact, compareTo, dispose, dumpHex, duplicate, equals, flip, get, get, get, get, get, get, getChar, getChar, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getShort, getShort, hasArray, hashCode, hasRemaining, isComposite, isDirect, isExternal, limit, limit, mark, onShareHeap, order, order, position, position, prepareDispose, put8BitString, release, remaining, reset, rewind, shrink, slice, slice, split, toBufferArray, toBufferArray, toBufferArray, toBufferArray, toByteBuffer0, toByteBufferArray, toByteBufferArray, toByteBufferArray, toByteBufferArray, toString, toStringContent, toStringContent, toStringContent, trim, tryDispose, underlying, wrap, wrappublic HeapBuffer asReadOnlyBuffer()
asReadOnlyBuffer in interface org.glassfish.grizzly.BufferasReadOnlyBuffer in class HeapBufferpublic boolean isReadOnly()
isReadOnly in interface org.glassfish.grizzly.BufferisReadOnly in class HeapBufferpublic HeapBuffer prepend(org.glassfish.grizzly.Buffer header)
prepend in interface org.glassfish.grizzly.Bufferprepend in class HeapBufferpublic HeapBuffer put(int index, byte b)
put in interface org.glassfish.grizzly.Bufferput in class HeapBufferpublic HeapBuffer put(org.glassfish.grizzly.Buffer src)
put in interface org.glassfish.grizzly.Bufferput in class HeapBufferpublic HeapBuffer put(org.glassfish.grizzly.Buffer src, int position, int length)
put in interface org.glassfish.grizzly.Bufferput in class HeapBufferpublic org.glassfish.grizzly.Buffer put(ByteBuffer src)
put in interface org.glassfish.grizzly.Bufferput in class HeapBufferpublic org.glassfish.grizzly.Buffer put(ByteBuffer src, int position, int length)
put in interface org.glassfish.grizzly.Bufferput in class HeapBufferpublic HeapBuffer put(byte b)
put in interface org.glassfish.grizzly.Bufferput in class HeapBufferpublic HeapBuffer put(byte[] src)
put in interface org.glassfish.grizzly.Bufferput in class HeapBufferpublic HeapBuffer put(byte[] src, int offset, int length)
put in interface org.glassfish.grizzly.Bufferput in class HeapBufferpublic HeapBuffer putChar(char value)
putChar in interface org.glassfish.grizzly.BufferputChar in class HeapBufferpublic HeapBuffer putChar(int index, char value)
putChar in interface org.glassfish.grizzly.BufferputChar in class HeapBufferpublic HeapBuffer putShort(short value)
putShort in interface org.glassfish.grizzly.BufferputShort in class HeapBufferpublic HeapBuffer putShort(int index, short value)
putShort in interface org.glassfish.grizzly.BufferputShort in class HeapBufferpublic HeapBuffer putInt(int value)
putInt in interface org.glassfish.grizzly.BufferputInt in class HeapBufferpublic HeapBuffer putInt(int index, int value)
putInt in interface org.glassfish.grizzly.BufferputInt in class HeapBufferpublic HeapBuffer putLong(long value)
putLong in interface org.glassfish.grizzly.BufferputLong in class HeapBufferpublic HeapBuffer putLong(int index, long value)
putLong in interface org.glassfish.grizzly.BufferputLong in class HeapBufferpublic HeapBuffer putFloat(float value)
putFloat in interface org.glassfish.grizzly.BufferputFloat in class HeapBufferpublic HeapBuffer putFloat(int index, float value)
putFloat in interface org.glassfish.grizzly.BufferputFloat in class HeapBufferpublic HeapBuffer putDouble(double value)
putDouble in interface org.glassfish.grizzly.BufferputDouble in class HeapBufferpublic HeapBuffer putDouble(int index, double value)
putDouble in interface org.glassfish.grizzly.BufferputDouble in class HeapBufferprotected HeapBuffer createHeapBuffer(int offset, int capacity)
HeapBufferHeapBuffer based on the current heap.createHeapBuffer in class HeapBufferoffset - relative offset, the absolute value will calculated as (this.offset + offs)public ByteBuffer toByteBuffer()
HeapBuffertoByteBuffer in interface org.glassfish.grizzly.BuffertoByteBuffer in class HeapBufferpublic ByteBuffer toByteBuffer(int position, int limit)
HeapBuffertoByteBuffer in interface org.glassfish.grizzly.BuffertoByteBuffer in class HeapBufferCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.