public class BSONByteBuffer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.nio.ByteBuffer |
buf |
Modifier and Type | Method and Description |
---|---|
protected boolean |
_isAscii(byte b) |
byte[] |
array() |
int |
arrayOffset() |
int |
compareTo(java.nio.ByteBuffer byteBuffer) |
java.nio.ByteBuffer |
duplicate() |
boolean |
equals(java.lang.Object o) |
java.nio.ByteBuffer |
get(byte[] bytes) |
java.nio.ByteBuffer |
get(byte[] bytes,
int offset,
int length) |
byte |
get(int i) |
char |
getChar(int i) |
java.lang.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) |
java.lang.String |
getUTF8String(int i) |
boolean |
hasArray() |
int |
hashCode() |
boolean |
hasRemaining() |
java.nio.Buffer |
mark() |
java.nio.ByteOrder |
order() |
java.nio.Buffer |
position(int i) |
int |
remaining() |
java.nio.Buffer |
reset() |
java.nio.Buffer |
rewind() |
int |
size() |
java.nio.ByteBuffer |
slice() |
java.lang.String |
toString() |
static BSONByteBuffer |
wrap(byte[] bytes) |
static BSONByteBuffer |
wrap(byte[] bytes,
int offset,
int length) |
public static BSONByteBuffer wrap(byte[] bytes, int offset, int length)
public static BSONByteBuffer wrap(byte[] bytes)
public java.nio.ByteBuffer slice()
public java.nio.ByteBuffer duplicate()
public byte get(int i)
public java.nio.ByteBuffer get(byte[] bytes, int offset, int length)
public java.nio.ByteBuffer get(byte[] bytes)
public boolean hasArray()
public byte[] array()
public int arrayOffset()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int compareTo(java.nio.ByteBuffer byteBuffer)
public java.nio.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 java.lang.String getCString(int i)
public java.lang.String getUTF8String(int i)
public java.nio.Buffer position(int i)
public java.nio.Buffer mark()
public java.nio.Buffer reset()
public java.nio.Buffer rewind()
public int remaining()
public boolean hasRemaining()
protected boolean _isAscii(byte b)
public int size()