public abstract class ByteReader
extends java.lang.Object
| Constructor and Description |
|---|
ByteReader() |
| Modifier and Type | Method and Description |
|---|---|
abstract byte |
getByte(int idx) |
int |
getInt(int idx) |
protected int |
getIntB(int idx) |
protected int |
getIntL(int idx) |
long |
getLong(int idx) |
protected long |
getLongB(int idx) |
protected long |
getLongL(int idx) |
java.nio.ByteOrder |
getOrder() |
abstract int |
length() |
protected int |
makeInt(byte b3,
byte b2,
byte b1,
byte b0) |
protected long |
makeLong(byte b7,
byte b6,
byte b5,
byte b4,
byte b3,
byte b2,
byte b1,
byte b0) |
abstract ByteReader |
mark() |
abstract byte |
nextUnsafe() |
abstract ByteReader |
reset() |
ByteReader |
setOrder(java.nio.ByteOrder order) |
static ByteReader |
wrap(byte[] buff) |
static ByteReader |
wrap(byte[] buff,
int offset,
int length) |
static ByteReader |
wrap(java.nio.ByteBuffer buff) |
public static ByteReader wrap(byte[] buff)
public static ByteReader wrap(byte[] buff, int offset, int length)
public static ByteReader wrap(java.nio.ByteBuffer buff)
public java.nio.ByteOrder getOrder()
public ByteReader setOrder(java.nio.ByteOrder order)
public abstract int length()
public abstract byte nextUnsafe()
public abstract byte getByte(int idx)
public abstract ByteReader mark()
public abstract ByteReader reset()
public int getInt(int idx)
public long getLong(int idx)
protected int getIntL(int idx)
protected int getIntB(int idx)
protected int makeInt(byte b3,
byte b2,
byte b1,
byte b0)
protected long getLongL(int idx)
protected long getLongB(int idx)
protected long makeLong(byte b7,
byte b6,
byte b5,
byte b4,
byte b3,
byte b2,
byte b1,
byte b0)