| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private Buffer | |
| private int | |
| private boolean | |
| private boolean | |
| private boolean | |
| private int[] | |
| private Buffer[] | |
| private int | |
| private ByteOrder | |
| private static final ThreadCache. | |
| private int | |
| public static volatile boolean | |
| protected Exception | |
| private boolean | |
| private boolean | |
| private int | |
| private int | |
| private int | |
| private int | |
| private MemoryManager | |
| private int | |
| private final BuffersBuffer. | |
| private int |
| Access | Constructor and Description |
|---|---|
| protected | BuffersBuffer(final MemoryManager<E extends Buffer> memoryManager, final Buffer[] buffers, final int buffersSize, final boolean isReadOnly)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public void | |
| public boolean | |
| public void | allowInternalBuffersDispose(boolean allowInternalBuffersDispose)
Implements abstract org.
|
| public BuffersBuffer | |
| public byte[] | array()
Implements org. Returns the byte array that backs this buffer (optional operation). |
| public int | arrayOffset()
Implements org. Returns the offset within this buffer's backing array of the first element of the buffer (optional operation). |
| public BuffersBuffer | asReadOnlyBuffer()
Implements org. Creates a new, read-only |
| public int | bulk(final CompositeBuffer.
Implements abstract org. Iterates over |
| public int | bulk(final CompositeBuffer.
Implements abstract org. Iterates over |
| public int | |
| private void | |
| private void | |
| private void | |
| public BuffersBuffer | |
| public BuffersBuffer | compact()
Implements org. Compacts this buffer (optional operation). |
| public int | compareTo(Buffer that)
Implements java. Compares this object with the specified object for order. |
| public static BuffersBuffer | |
| public static BuffersBuffer | |
| public static BuffersBuffer | |
| public static BuffersBuffer | create(final MemoryManager<E extends Buffer> memoryManager, final Buffer[] buffers, final boolean isReadOnly)
|
| private static BuffersBuffer | create(final MemoryManager<E extends Buffer> memoryManager, final Buffer[] buffers, final int buffersSize, final boolean isReadOnly)
|
| private static BuffersBuffer | create(final MemoryManager<E extends Buffer> memoryManager, final Buffer[] buffers, final int buffersSize, final ByteOrder byteOrder, final boolean isReadOnly)
|
| public void | dispose()
Implements org. Notify the allocator that the space for this Buffer is no longer needed. |
| public void | dumpHex(Appendable appendable)
Implements org. Generate a hex dump of this |
| public BuffersBuffer | duplicate()
Implements org. Creates a new |
| private BuffersBuffer | |
| private void | |
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| private void | |
| public BuffersBuffer | |
| public byte | |
| public byte | |
| public BuffersBuffer | |
| public BuffersBuffer | get(final byte[] dst, int offset, int length)
Implements org. Relative bulk get method. |
| public BuffersBuffer | |
| public BuffersBuffer | get(final ByteBuffer dst, int offset, int length)
Implements org. Relative bulk get method. |
| public char | getChar()
Implements org. Relative get method for reading a char value. |
| public char | getChar(final int index)
Implements org. Absolute get method for reading a char value. |
| public double | getDouble()
Implements org. Relative get method for reading a double value. |
| public double | getDouble(int index)
Implements org. Absolute get method for reading a double value. |
| public float | getFloat()
Implements org. Relative get method for reading a float value. |
| public float | getFloat(int index)
Implements org. Absolute get method for reading a float value. |
| public int | getInt()
Implements org. Relative get method for reading an int value. |
| public int | getInt(final int index)
Implements org. Absolute get method for reading an int value. |
| public long | getLong()
Implements org. Relative get method for reading a long value. |
| public long | getLong(final int index)
Implements org. Absolute get method for reading a long value. |
| public short | getShort()
Implements org. Relative get method for reading a short value. |
| public short | getShort(final int index)
Implements org. Absolute get method for reading a short value. |
| public boolean | hasArray()
Implements org. Tells whether or not this buffer is backed by an accessible byte array. |
| public int | Returns: The current hash code of this bufferOverrides java. Returns the current hash code of this buffer. |
| public boolean | hasRemaining()
Implements org. Tells whether there are any elements between the current position and the limit. |
| private void | |
| public boolean | |
| public boolean | isDirect()
Implements org. Tells whether or not this buffer is direct. |
| public boolean | isExternal()
Implements org. Returns true if the message represents an external resource (for example
|
| public boolean | isReadOnly()
Implements org. Tells whether or not this buffer is read-only. |
| public int | |
| public BuffersBuffer | |
| private char | |
| private char | |
| private int | |
| private int | |
| private long | |
| private long | |
| private short | |
| private short | |
| public BuffersBuffer | |
| public ByteOrder | |
| public BuffersBuffer | order(final ByteOrder bo)
Implements org. Modifies this buffer's byte order. |
| public int | |
| public BuffersBuffer | position(final int newPosition)
Implements org. Sets this buffer's position. |
| public BuffersBuffer | prepend(final Buffer buffer)
Implements abstract org. Implements org. Prepend data from header.position() to header.limit() to the current buffer. |
| public BuffersBuffer | |
| public BuffersBuffer | put(int index, byte b)
Implements org. Absolute put method (optional operation). |
| public BuffersBuffer | put(final byte[] src)
Implements org. Relative bulk put method (optional operation). |
| public BuffersBuffer | put(final byte[] src, int offset, int length)
Implements org. Relative bulk put method (optional operation). |
| public BuffersBuffer | put(final ByteBuffer src)
Implements org. Relative bulk put method (optional operation). |
| public BuffersBuffer | put(final ByteBuffer src, int offset, int length)
Implements org. Relative bulk put method (optional operation). |
| public BuffersBuffer | put(Buffer src)
Implements org. Relative bulk put method (optional operation). |
| public Buffer | put(Buffer src, int position, int length)
Implements org. Relative bulk put method (optional operation). |
| public BuffersBuffer | put8BitString(final String s)
Implements org. Relative bulk put method (optional operation). |
| public BuffersBuffer | putChar(final char value)
Implements org. Relative put method for writing a char value (optional operation). |
| public BuffersBuffer | putChar(int index, final char value)
Implements org. Absolute put method for writing a char value (optional operation). |
| private void | |
| private void | |
| public BuffersBuffer | putDouble(double value)
Implements org. Relative put method for writing a double value (optional operation). |
| public BuffersBuffer | putDouble(int index, double value)
Implements org. Absolute put method for writing a double value (optional operation). |
| public BuffersBuffer | putFloat(float value)
Implements org. Relative put method for writing a float value (optional operation). |
| public BuffersBuffer | putFloat(int index, float value)
Implements org. Absolute put method for writing a float value (optional operation). |
| public BuffersBuffer | putInt(final int value)
Implements org. Relative put method for writing an int value (optional operation). |
| public BuffersBuffer | putInt(int index, final int value)
Implements org. Absolute put method for writing an int value (optional operation). |
| private void | |
| private void | |
| public BuffersBuffer | putLong(final long value)
Implements org. Relative put method for writing a long value (optional operation). |
| public BuffersBuffer | putLong(final int index, final long value)
Implements org. Absolute put method for writing a long value (optional operation). |
| private void | |
| private void | |
| public BuffersBuffer | putShort(final short value)
Implements org. Relative put method for writing a short value (optional operation). |
| public BuffersBuffer | putShort(int index, final short value)
Implements org. Absolute put method for writing a short value (optional operation). |
| private void | |
| private void | |
| private void | |
| private void | |
| public boolean | release()
Implements org. Perform message specific actions to release resources held by the entity backing this |
| public int | remaining()
Implements org. Returns the number of elements between the current position and the limit. |
| public void | removeAll()
Implements abstract org. Removes underlying |
| private void | |
| protected int | |
| public boolean | replace(final Buffer oldBuffer, final Buffer newBuffer)
Implements abstract org. Replace one internal |
| public BuffersBuffer | reset()
Implements org. Resets this buffer's position to the previously-marked position. |
| private void | |
| public BuffersBuffer | |
| private void | set(final MemoryManager<E extends Buffer> memoryManager, final Buffer[] buffers, final int buffersSize, final boolean isReadOnly)
|
| private void | |
| public void | shrink()
Implements org. Disposes the buffer part, outside [position, limit] interval if possible. |
| public Buffer | slice()
Implements org. Creates a new |
| public Buffer | slice(final int position, final int limit)
Implements org. Creates a new |
| public Buffer | split(final int splitPosition)
Implements org. Split up the buffer into two parts: [0..splitPosition) and [splitPosition, capacity). |
| private int | |
| public BufferArray | toBufferArray()
Implements org.
Returns a new |
| public BufferArray | toBufferArray(final BufferArray array)
Implements org.
Returns the specified |
| public BufferArray | toBufferArray(final int position, final int limit)
Implements org.
Updates this |
| public BufferArray | toBufferArray(final BufferArray array, final int position, final int limit)
Implements org.
Updates this |
| public ByteBuffer | toByteBuffer()
Implements org.
Converts this |
| public ByteBuffer | toByteBuffer(int position, int limit)
Implements org.
Converts this |
| public ByteBufferArray | toByteBufferArray()
Implements org.
Converts this |
| public ByteBufferArray | toByteBufferArray(final ByteBufferArray array)
Implements org.
Converts this |
| public ByteBufferArray | toByteBufferArray(final int position, final int limit)
Implements org.
Converts this |
| public ByteBufferArray | toByteBufferArray(final ByteBufferArray array, final int position, final int limit)
Implements org.
Converts this |
| public String | |
| public String | |
| public String | |
| public String | toStringContent(Charset charset, final int position, final int limit)
Implements org. |
| public void | trim()
Implements org. Trim the buffer by reducing capacity to position, if possible. |
| public boolean | tryDispose()
Implements org. Try to dispose Buffer if it's allowed. |
| public Buffer[] | underlying()
Implements abstract org. Implements org. Return the underlying buffer |