| java.lang.Object java.nio.Buffer java.nio.ByteBuffer java.nio.BaseByteBuffer java.nio.HeapByteBuffer
All known Subclasses: java.nio.ReadWriteHeapByteBuffer, java.nio.ReadOnlyHeapByteBuffer,
HeapByteBuffer | abstract class HeapByteBuffer extends BaseByteBuffer (Code) | | HeapByteBuffer, ReadWriteHeapByteBuffer and ReadOnlyHeapByteBuffer compose
the implementation of array based byte buffers.
HeapByteBuffer implements all the shared readonly methods and is extended by
the other two classes.
All methods are marked final for runtime performance.
|
Method Summary | |
final public ByteBuffer | get(byte[] dest, int off, int len) | final public byte | get() | final public byte | get(int index) | final public double | getDouble() | final public double | getDouble(int index) | final public float | getFloat() | final public float | getFloat(int index) | final public int | getInt() | final public int | getInt(int index) | final public long | getLong() | final public long | getLong(int index) | final public short | getShort() | final public short | getShort(int index) | final public boolean | isDirect() | final protected int | loadInt(int index) | final protected long | loadLong(int index) | final protected short | loadShort(int index) | final protected void | store(int index, int value) | final protected void | store(int index, long value) | final protected void | store(int index, short value) |
backingArray | final protected byte[] backingArray(Code) | | |
offset | final protected int offset(Code) | | |
HeapByteBuffer | HeapByteBuffer(byte[] backingArray)(Code) | | |
HeapByteBuffer | HeapByteBuffer(int capacity)(Code) | | |
HeapByteBuffer | HeapByteBuffer(byte[] backingArray, int capacity, int offset)(Code) | | |
get | final public byte get()(Code) | | |
get | final public byte get(int index)(Code) | | |
getDouble | final public double getDouble()(Code) | | |
getDouble | final public double getDouble(int index)(Code) | | |
getFloat | final public float getFloat()(Code) | | |
getFloat | final public float getFloat(int index)(Code) | | |
getInt | final public int getInt()(Code) | | |
getInt | final public int getInt(int index)(Code) | | |
getLong | final public long getLong()(Code) | | |
getLong | final public long getLong(int index)(Code) | | |
getShort | final public short getShort()(Code) | | |
getShort | final public short getShort(int index)(Code) | | |
isDirect | final public boolean isDirect()(Code) | | |
loadInt | final protected int loadInt(int index)(Code) | | |
loadLong | final protected long loadLong(int index)(Code) | | |
loadShort | final protected short loadShort(int index)(Code) | | |
store | final protected void store(int index, int value)(Code) | | |
store | final protected void store(int index, long value)(Code) | | |
store | final protected void store(int index, short value)(Code) | | |
Methods inherited from java.nio.ByteBuffer | public static ByteBuffer allocate(int capacity)(Code)(Java Doc) public static ByteBuffer allocateDirect(int capacity)(Code)(Java Doc) final public byte[] array()(Code)(Java Doc) final public int arrayOffset()(Code)(Java Doc) abstract public CharBuffer asCharBuffer()(Code)(Java Doc) abstract public DoubleBuffer asDoubleBuffer()(Code)(Java Doc) abstract public FloatBuffer asFloatBuffer()(Code)(Java Doc) abstract public IntBuffer asIntBuffer()(Code)(Java Doc) abstract public LongBuffer asLongBuffer()(Code)(Java Doc) abstract public ByteBuffer asReadOnlyBuffer()(Code)(Java Doc) abstract public ShortBuffer asShortBuffer()(Code)(Java Doc) abstract public ByteBuffer compact()(Code)(Java Doc) public int compareTo(ByteBuffer otherBuffer)(Code)(Java Doc) abstract public ByteBuffer duplicate()(Code)(Java Doc) public boolean equals(Object other)(Code)(Java Doc) abstract public byte get()(Code)(Java Doc) public ByteBuffer get(byte[] dest)(Code)(Java Doc) public ByteBuffer get(byte[] dest, int off, int len)(Code)(Java Doc) abstract public byte get(int index)(Code)(Java Doc) abstract public char getChar()(Code)(Java Doc) abstract public char getChar(int index)(Code)(Java Doc) abstract public double getDouble()(Code)(Java Doc) abstract public double getDouble(int index)(Code)(Java Doc) abstract public float getFloat()(Code)(Java Doc) abstract public float getFloat(int index)(Code)(Java Doc) abstract public int getInt()(Code)(Java Doc) abstract public int getInt(int index)(Code)(Java Doc) abstract public long getLong()(Code)(Java Doc) abstract public long getLong(int index)(Code)(Java Doc) abstract public short getShort()(Code)(Java Doc) abstract public short getShort(int index)(Code)(Java Doc) final public boolean hasArray()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) abstract public boolean isDirect()(Code)(Java Doc) final public ByteOrder order()(Code)(Java Doc) final public ByteBuffer order(ByteOrder byteOrder)(Code)(Java Doc) ByteBuffer orderImpl(ByteOrder byteOrder)(Code)(Java Doc) abstract byte[] protectedArray()(Code)(Java Doc) abstract int protectedArrayOffset()(Code)(Java Doc) abstract boolean protectedHasArray()(Code)(Java Doc) abstract public ByteBuffer put(byte b)(Code)(Java Doc) final public ByteBuffer put(byte[] src)(Code)(Java Doc) public ByteBuffer put(byte[] src, int off, int len)(Code)(Java Doc) public ByteBuffer put(ByteBuffer src)(Code)(Java Doc) abstract public ByteBuffer put(int index, byte b)(Code)(Java Doc) abstract public ByteBuffer putChar(char value)(Code)(Java Doc) abstract public ByteBuffer putChar(int index, char value)(Code)(Java Doc) abstract public ByteBuffer putDouble(double value)(Code)(Java Doc) abstract public ByteBuffer putDouble(int index, double value)(Code)(Java Doc) abstract public ByteBuffer putFloat(float value)(Code)(Java Doc) abstract public ByteBuffer putFloat(int index, float value)(Code)(Java Doc) abstract public ByteBuffer putInt(int value)(Code)(Java Doc) abstract public ByteBuffer putInt(int index, int value)(Code)(Java Doc) abstract public ByteBuffer putLong(long value)(Code)(Java Doc) abstract public ByteBuffer putLong(int index, long value)(Code)(Java Doc) abstract public ByteBuffer putShort(short value)(Code)(Java Doc) abstract public ByteBuffer putShort(int index, short value)(Code)(Java Doc) abstract public ByteBuffer slice()(Code)(Java Doc) public String toString()(Code)(Java Doc) public static ByteBuffer wrap(byte[] array)(Code)(Java Doc) public static ByteBuffer wrap(byte[] array, int start, int len)(Code)(Java Doc)
|
|
|