BSONByteBuffer
also take a byte[]
@Deprecated public class BSONByteBuffer extends Object
LazyBSONObject
and its children, also work with a simple byte array,
which is the preferred approach.Modifier and Type | Field and Description |
---|---|
protected ByteBuffer |
buf
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
array()
Deprecated.
|
boolean |
equals(Object o)
Deprecated.
|
ByteBuffer |
get(byte[] bytes)
Deprecated.
|
ByteBuffer |
get(byte[] bytes,
int offset,
int length)
Deprecated.
|
byte |
get(int i)
Deprecated.
|
String |
getCString(int offset)
Deprecated.
|
int |
getInt(int i)
Deprecated.
Gets a Little Endian Integer
|
int |
getIntBE(int i)
Deprecated.
|
int |
getIntLE(int i)
Deprecated.
|
long |
getLong(int i)
Deprecated.
|
String |
getUTF8String(int valueOffset)
Deprecated.
|
int |
hashCode()
Deprecated.
|
Buffer |
position(int i)
Deprecated.
|
Buffer |
reset()
Deprecated.
|
int |
size()
Deprecated.
|
String |
toString()
Deprecated.
|
static BSONByteBuffer |
wrap(byte[] bytes)
Deprecated.
|
static BSONByteBuffer |
wrap(byte[] bytes,
int offset,
int length)
Deprecated.
|
protected ByteBuffer buf
public static BSONByteBuffer wrap(byte[] bytes, int offset, int length)
public static BSONByteBuffer wrap(byte[] bytes)
public byte get(int i)
public ByteBuffer get(byte[] bytes, int offset, int length)
public ByteBuffer get(byte[] bytes)
public byte[] array()
public int getInt(int i)
i
- Index to read frompublic int getIntLE(int i)
public int getIntBE(int i)
public long getLong(int i)
public String getCString(int offset)
public String getUTF8String(int valueOffset)
public Buffer position(int i)
public Buffer reset()
public int size()