|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object inua.eio.Buffer inua.eio.ByteBuffer
public abstract class ByteBuffer
Field Summary | |
---|---|
protected ByteOrdered |
byteOrdered
|
(package private) byte[] |
scratch
|
protected WordSized |
wordSized
|
Fields inherited from class inua.eio.Buffer |
---|
bound, cursor, highWater, lowWater, mark |
Constructor Summary | |
---|---|
protected |
ByteBuffer(long lowWater,
long highWater)
|
Method Summary | |
---|---|
byte |
get()
|
ByteBuffer |
get(byte[] dst)
|
ByteBuffer |
get(byte[] dst,
int off,
int len)
|
byte |
get(long index)
|
ByteBuffer |
get(long index,
byte[] dst,
int off,
int len)
|
ByteBuffer |
get(long index,
long len,
StringBuffer string)
|
ByteBuffer |
get(long index,
StringBuffer string)
|
ByteBuffer |
get(StringBuffer string)
|
byte |
getByte()
|
byte |
getByte(long index)
|
double |
getDouble(ByteOrder byteOrder,
long index)
|
double |
getDouble(long index)
|
float |
getFloat(ByteOrder byteOrder,
long index)
|
float |
getFloat(long index)
|
int |
getInt()
|
int |
getInt(ByteOrder byteOrder)
|
int |
getInt(ByteOrder byteOrder,
long index)
|
int |
getInt(long index)
|
long |
getLong()
|
long |
getLong(ByteOrder byteOrder)
|
long |
getLong(ByteOrder byteOrder,
long index)
|
long |
getLong(long index)
|
short |
getShort()
|
short |
getShort(ByteOrder byteOrder)
|
short |
getShort(ByteOrder byteOrder,
long index)
|
short |
getShort(long index)
|
short |
getUByte()
|
short |
getUByte(long index)
|
long |
getUInt()
|
long |
getUInt(ByteOrder byteOrder)
|
long |
getUInt(ByteOrder byteOrder,
long index)
|
long |
getUInt(long index)
|
long |
getULong()
|
long |
getULong(ByteOrder byteOrder)
|
long |
getULong(ByteOrder byteOrder,
long index)
|
long |
getULong(long index)
|
int |
getUShort()
|
int |
getUShort(ByteOrder byteOrder)
|
int |
getUShort(ByteOrder byteOrder,
long index)
|
int |
getUShort(long index)
|
long |
getUWord()
|
long |
getUWord(long index)
Get unsigned word at byte offset INDEX. |
long |
getUWordSized(long index)
Get unsigned word at word (and not byte) offset INDEX. |
long |
getWord()
|
long |
getWord(long index)
Get word at word at byte offset INDEX. |
long |
getWordSized(long index)
Get word at word (and not byte) offset INDEX. |
ByteOrder |
order()
|
ByteBuffer |
order(ByteOrder bo)
|
protected abstract int |
peek(long caret)
Read a single byte at CARET. |
protected int |
peek(long caret,
byte[] bytes,
int off,
int len)
|
protected long |
peekBig(int len)
|
protected long |
peekBig(long caret,
int len)
|
protected double |
peekBigDouble(int len)
|
protected double |
peekBigDouble(long caret,
int len)
|
protected float |
peekBigFloat(int len)
|
protected float |
peekBigFloat(long caret,
int len)
|
protected void |
peekFully(long caret,
byte[] bytes,
int off,
int len)
|
protected long |
peekLittle(int len)
|
protected long |
peekLittle(long caret,
int len)
|
protected double |
peekLittleDouble(int len)
|
protected double |
peekLittleDouble(long caret,
int len)
|
protected float |
peekLittleFloat(int len)
|
protected float |
peekLittleFloat(long caret,
int len)
|
protected int |
poke(long caret,
byte[] bytes,
int off,
int len)
|
protected abstract void |
poke(long caret,
int val)
Write VAL (as a single byte), to CARET. |
protected void |
pokeBig(int len,
double value)
|
protected void |
pokeBig(int len,
float value)
|
protected void |
pokeBig(int len,
long value)
|
protected void |
pokeBig(long caret,
int len,
double value)
|
protected void |
pokeBig(long caret,
int len,
float value)
|
protected void |
pokeBig(long caret,
int len,
long value)
|
protected void |
pokeFully(long caret,
byte[] bytes,
int off,
int len)
|
protected void |
pokeLittle(int len,
double value)
|
protected void |
pokeLittle(int len,
float value)
|
protected void |
pokeLittle(int len,
long value)
|
protected void |
pokeLittle(long caret,
int len,
double value)
|
protected void |
pokeLittle(long caret,
int len,
float value)
|
protected void |
pokeLittle(long caret,
int len,
long value)
|
ByteBuffer |
put(byte[] src)
|
ByteBuffer |
put(byte[] src,
int off,
int len)
|
void |
putByte(byte v)
|
void |
putByte(long index,
byte v)
|
void |
putDouble(ByteOrder byteOrder,
double v)
|
void |
putDouble(ByteOrder byteOrder,
long index,
double v)
|
void |
putDouble(double v)
|
void |
putDouble(long index,
double v)
|
void |
putFloat(ByteOrder byteOrder,
float v)
|
void |
putFloat(ByteOrder byteOrder,
long index,
float v)
|
void |
putFloat(float v)
|
void |
putFloat(long index,
float v)
|
void |
putInt(ByteOrder byteOrder,
int v)
|
void |
putInt(ByteOrder byteOrder,
long index,
int v)
|
void |
putInt(int v)
|
void |
putInt(long index,
int v)
|
void |
putLong(ByteOrder byteOrder,
long v)
|
void |
putLong(ByteOrder byteOrder,
long index,
long v)
|
void |
putLong(long v)
|
void |
putLong(long index,
long v)
|
void |
putShort(ByteOrder byteOrder,
long index,
short v)
|
void |
putShort(ByteOrder byteOrder,
short v)
|
void |
putShort(long index,
short v)
|
void |
putShort(short v)
|
void |
putUByte(long index,
short v)
|
void |
putUByte(short v)
|
void |
putUInt(ByteOrder byteOrder,
long v)
|
void |
putUInt(ByteOrder byteOrder,
long index,
long v)
|
void |
putUInt(long v)
|
void |
putUInt(long index,
long v)
|
void |
putULong(ByteOrder byteOrder,
long v)
|
void |
putULong(ByteOrder byteOrder,
long index,
long v)
|
void |
putULong(long v)
|
void |
putULong(long index,
long v)
|
void |
putUShort(ByteOrder byteOrder,
int v)
|
void |
putUShort(ByteOrder byteOrder,
long index,
int v)
|
void |
putUShort(int v)
|
void |
putUShort(long index,
int v)
|
void |
putUWord(long w)
|
void |
putUWord(long index,
long w)
Put the unsigned WORD at byte offset INDEX. |
void |
putUWordSized(long index,
long w)
Put WORD at unsigned word (and not byte) offset INDEX. |
void |
putWord(long w)
|
void |
putWord(long index,
long w)
Put WORD at byte offset INDEX. |
void |
putWordSized(long index,
long w)
Put WORD at word (and not byte) offset INDEX. |
int |
safeGet(long index,
byte[] dst,
int off,
int len)
|
ByteBuffer |
slice()
|
ByteBuffer |
slice(long off,
long len)
|
protected ByteBuffer |
subBuffer(ByteBuffer buffer,
long lowerExtreem,
long upperExtreem)
Given BUFFER, return a new subBuffer. |
long |
wordLength()
Return the length of the ByteBuffer as words. |
int |
wordSize()
|
ByteBuffer |
wordSize(int w)
|
Methods inherited from class inua.eio.Buffer |
---|
capacity, clear, flip, hasRemaining, limit, limit, mark, position, position, remaining, reset, rewind |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
byte[] scratch
protected ByteOrdered byteOrdered
protected WordSized wordSized
Constructor Detail |
---|
protected ByteBuffer(long lowWater, long highWater)
Method Detail |
---|
protected abstract int peek(long caret)
protected abstract void poke(long caret, int val)
protected int peek(long caret, byte[] bytes, int off, int len)
protected int poke(long caret, byte[] bytes, int off, int len)
protected final void peekFully(long caret, byte[] bytes, int off, int len)
protected final void pokeFully(long caret, byte[] bytes, int off, int len)
protected final long peekBig(long caret, int len)
protected final float peekBigFloat(long caret, int len)
protected final double peekBigDouble(long caret, int len)
protected final void pokeBig(long caret, int len, long value)
protected final void pokeBig(long caret, int len, float value)
protected final void pokeBig(long caret, int len, double value)
protected final long peekLittle(long caret, int len)
protected final float peekLittleFloat(long caret, int len)
protected final double peekLittleDouble(long caret, int len)
protected final void pokeLittle(long caret, int len, long value)
protected final void pokeLittle(long caret, int len, float value)
protected final void pokeLittle(long caret, int len, double value)
protected final long peekLittle(int len)
protected final float peekLittleFloat(int len)
protected final double peekLittleDouble(int len)
protected final void pokeBig(int len, long value)
protected final void pokeBig(int len, float value)
protected final void pokeBig(int len, double value)
protected final long peekBig(int len)
protected final float peekBigFloat(int len)
protected final double peekBigDouble(int len)
protected final void pokeLittle(int len, long value)
protected final void pokeLittle(int len, float value)
protected final void pokeLittle(int len, double value)
protected ByteBuffer subBuffer(ByteBuffer buffer, long lowerExtreem, long upperExtreem)
slice(long, long)
.
public ByteBuffer slice(long off, long len)
public ByteBuffer slice()
public final byte get()
public final byte get(long index)
public ByteBuffer get(long index, byte[] dst, int off, int len) throws BufferUnderflowException
BufferUnderflowException
public int safeGet(long index, byte[] dst, int off, int len)
public ByteBuffer get(byte[] dst, int off, int len) throws BufferUnderflowException
BufferUnderflowException
public final ByteBuffer get(byte[] dst) throws BufferUnderflowException
BufferUnderflowException
public ByteBuffer put(byte[] src, int off, int len) throws BufferUnderflowException
BufferUnderflowException
public final ByteBuffer put(byte[] src) throws BufferUnderflowException
BufferUnderflowException
public final ByteOrder order()
public final ByteBuffer order(ByteOrder bo)
public final byte getByte()
public final byte getByte(long index)
public final short getUByte()
public final short getUByte(long index)
public final void putByte(byte v)
public final void putByte(long index, byte v)
public final void putUByte(short v)
public final void putUByte(long index, short v)
public final short getShort()
public final short getShort(ByteOrder byteOrder)
public final short getShort(long index)
public final short getShort(ByteOrder byteOrder, long index)
public final int getUShort()
public final int getUShort(ByteOrder byteOrder)
public final int getUShort(long index)
public final int getUShort(ByteOrder byteOrder, long index)
public final int getInt()
public final int getInt(ByteOrder byteOrder)
public final int getInt(long index)
public final int getInt(ByteOrder byteOrder, long index)
public final long getUInt()
public final long getUInt(ByteOrder byteOrder)
public final long getUInt(long index)
public final long getUInt(ByteOrder byteOrder, long index)
public final long getULong()
public final long getULong(ByteOrder byteOrder)
public final long getULong(long index)
public final long getULong(ByteOrder byteOrder, long index)
public final long getLong()
public final long getLong(ByteOrder byteOrder)
public final long getLong(long index)
public final long getLong(ByteOrder byteOrder, long index)
public final float getFloat(long index)
public final float getFloat(ByteOrder byteOrder, long index)
public final double getDouble(long index)
public final double getDouble(ByteOrder byteOrder, long index)
public final void putShort(short v)
public final void putShort(ByteOrder byteOrder, short v)
public final void putShort(long index, short v)
public final void putShort(ByteOrder byteOrder, long index, short v)
public final void putUShort(int v)
public final void putUShort(ByteOrder byteOrder, int v)
public final void putUShort(long index, int v)
public final void putUShort(ByteOrder byteOrder, long index, int v)
public final void putInt(int v)
public final void putInt(ByteOrder byteOrder, int v)
public final void putInt(long index, int v)
public final void putInt(ByteOrder byteOrder, long index, int v)
public final void putUInt(long v)
public final void putUInt(ByteOrder byteOrder, long v)
public final void putUInt(long index, long v)
public final void putUInt(ByteOrder byteOrder, long index, long v)
public final void putULong(long v)
public final void putULong(ByteOrder byteOrder, long v)
public final void putULong(long index, long v)
public final void putULong(ByteOrder byteOrder, long index, long v)
public final void putLong(long v)
public final void putLong(ByteOrder byteOrder, long v)
public final void putLong(long index, long v)
public final void putLong(ByteOrder byteOrder, long index, long v)
public final void putFloat(float v)
public final void putFloat(ByteOrder byteOrder, float v)
public final void putFloat(long index, float v)
public final void putFloat(ByteOrder byteOrder, long index, float v)
public final void putDouble(double v)
public final void putDouble(ByteOrder byteOrder, double v)
public final void putDouble(long index, double v)
public final void putDouble(ByteOrder byteOrder, long index, double v)
public final long getWord()
public final long getUWord()
public final void putWord(long w)
public final void putUWord(long w)
public final long getWord(long index)
public final long getUWord(long index)
public final void putWord(long index, long w)
public final void putUWord(long index, long w)
public final long getWordSized(long index)
public final long getUWordSized(long index)
public final void putWordSized(long index, long w)
public final void putUWordSized(long index, long w)
public ByteBuffer wordSize(int w)
public int wordSize()
public long wordLength()
public ByteBuffer get(StringBuffer string)
public ByteBuffer get(long index, StringBuffer string)
public ByteBuffer get(long index, long len, StringBuffer string)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |