@Deprecated public class NewBSONDecoder extends java.lang.Object implements BSONDecoder
| Modifier and Type | Field and Description |
|---|---|
private BSONCallback |
_callback
Deprecated.
|
private byte[] |
_data
Deprecated.
|
private int |
_length
Deprecated.
|
private int |
_pos
Deprecated.
|
private static java.lang.String |
DEFAULT_ENCODING
Deprecated.
|
private static int |
MAX_STRING
Deprecated.
|
| Constructor and Description |
|---|
NewBSONDecoder()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
_binary(java.lang.String pName)
Deprecated.
|
private void |
_decode()
Deprecated.
|
private java.lang.Object |
_readBasicObject()
Deprecated.
|
int |
decode(byte[] pData,
BSONCallback pCallback)
Deprecated.
Decode a single BSON object into the given callback from the given byte array.
|
int |
decode(java.io.InputStream pIn,
BSONCallback pCallback)
Deprecated.
Decode a single BSON object into the given callback from the given input stream.
|
private boolean |
decodeElement()
Deprecated.
|
private java.lang.String |
readCstr()
Deprecated.
|
BSONObject |
readObject(byte[] pData)
Deprecated.
Read a single BSON object from the given bytes.
|
BSONObject |
readObject(java.io.InputStream pIn)
Deprecated.
Read a single BSON object from the given input stream.
|
private java.lang.String |
readUtf8Str()
Deprecated.
|
private static final int MAX_STRING
private static final java.lang.String DEFAULT_ENCODING
private byte[] _data
private int _length
private int _pos
private BSONCallback _callback
public BSONObject readObject(byte[] pData)
BSONDecoderreadObject in interface BSONDecoderpData - the bytes in BSON formatpublic BSONObject readObject(java.io.InputStream pIn) throws java.io.IOException
BSONDecoderreadObject in interface BSONDecoderpIn - the input stream in BSON formatjava.io.IOException - if there's a problem reading the object from the InputStreampublic int decode(byte[] pData,
BSONCallback pCallback)
BSONDecoderdecode in interface BSONDecoderpData - the bytes in BSON formatpCallback - the callbackpublic int decode(java.io.InputStream pIn,
BSONCallback pCallback)
throws java.io.IOException
BSONDecoderdecode in interface BSONDecoderpIn - the input stream in BSON formatpCallback - the callbackjava.io.IOException - if there's a problem reading from the InputStreamprivate final void _decode()
private final java.lang.String readCstr()
private final java.lang.String readUtf8Str()
private final java.lang.Object _readBasicObject()
private final void _binary(java.lang.String pName)
private final boolean decodeElement()