public abstract class ByteBufferReader extends Object
Modifier and Type | Field and Description |
---|---|
protected ByteBuffer |
mBuf |
Modifier and Type | Method and Description |
---|---|
abstract byte |
get() |
abstract void |
get(byte[] dst) |
abstract void |
get(byte[] dst,
int offset,
int length) |
static ByteBufferReader |
getByteBufferReader(ByteBuffer buf)
Get most efficient ByteBufferReader for the ByteBuffer.
|
abstract char |
getChar() |
abstract double |
getDouble() |
abstract float |
getFloat() |
abstract int |
getInt() |
abstract long |
getLong() |
abstract short |
getShort() |
ByteOrder |
order() |
void |
order(ByteOrder bo) |
abstract int |
position() |
abstract void |
position(int newPosition) |
protected ByteBuffer mBuf
public static ByteBufferReader getByteBufferReader(ByteBuffer buf) throws IOException
buf
- the ByteBuffer to read.IOException
public abstract byte get()
public abstract void get(byte[] dst)
public abstract void get(byte[] dst, int offset, int length)
public abstract char getChar()
public abstract double getDouble()
public abstract float getFloat()
public abstract int getInt()
public abstract long getLong()
public abstract short getShort()
public abstract int position()
public abstract void position(int newPosition)
public ByteOrder order()
public void order(ByteOrder bo)
Copyright © 2014. All rights reserved.