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