public class BSONByteBuffer extends Object
Modifier and Type | Field and Description |
---|---|
protected ByteBuffer |
buf |
Modifier and Type | Method and Description |
---|---|
protected boolean |
_isAscii(byte b) |
byte[] |
array() |
int |
arrayOffset() |
int |
compareTo(ByteBuffer byteBuffer) |
ByteBuffer |
duplicate() |
boolean |
equals(Object o) |
ByteBuffer |
get(byte[] bytes) |
ByteBuffer |
get(byte[] bytes,
int offset,
int length) |
byte |
get(int i) |
char |
getChar(int i) |
String |
getCString(int i) |
double |
getDouble(int i) |
float |
getFloat(int i) |
int |
getInt(int i)
Gets a Little Endian Integer
|
int |
getInt(int i,
boolean littleEndian) |
int |
getIntBE(int i) |
int |
getIntLE(int i) |
long |
getLong(int i) |
short |
getShort(int i) |
String |
getUTF8String(int i) |
boolean |
hasArray() |
int |
hashCode() |
boolean |
hasRemaining() |
Buffer |
mark() |
ByteOrder |
order() |
Buffer |
position(int i) |
int |
remaining() |
Buffer |
reset() |
Buffer |
rewind() |
int |
size() |
ByteBuffer |
slice() |
String |
toString() |
static BSONByteBuffer |
wrap(byte[] bytes) |
static BSONByteBuffer |
wrap(byte[] bytes,
int offset,
int length) |
protected ByteBuffer buf
public static BSONByteBuffer wrap(byte[] bytes, int offset, int length)
public static BSONByteBuffer wrap(byte[] bytes)
public ByteBuffer slice()
public ByteBuffer duplicate()
public byte get(int i)
public ByteBuffer get(byte[] bytes, int offset, int length)
public ByteBuffer get(byte[] bytes)
public boolean hasArray()
public byte[] array()
public int arrayOffset()
public int compareTo(ByteBuffer byteBuffer)
public ByteOrder order()
public char getChar(int i)
public short getShort(int i)
public int getInt(int i)
i
- Index to read frompublic int getInt(int i, boolean littleEndian)
public int getIntLE(int i)
public int getIntBE(int i)
public long getLong(int i)
public float getFloat(int i)
public double getDouble(int i)
public String getCString(int i)
public String getUTF8String(int i)
public Buffer position(int i)
public Buffer mark()
public Buffer reset()
public Buffer rewind()
public int remaining()
public boolean hasRemaining()
protected boolean _isAscii(byte b)
public int size()