@Deprecated public class NewBSONDecoder extends java.lang.Object implements BSONDecoder
Constructor and Description |
---|
NewBSONDecoder()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
public BSONObject readObject(byte[] pData)
BSONDecoder
readObject
in interface BSONDecoder
pData
- the bytes in BSON formatpublic BSONObject readObject(java.io.InputStream pIn) throws java.io.IOException
BSONDecoder
readObject
in interface BSONDecoder
pIn
- the input stream in BSON formatjava.io.IOException
- if there's a problem reading the object from the InputStream
public int decode(byte[] pData, BSONCallback pCallback)
BSONDecoder
decode
in interface BSONDecoder
pData
- the bytes in BSON formatpCallback
- the callbackpublic int decode(java.io.InputStream pIn, BSONCallback pCallback) throws java.io.IOException
BSONDecoder
decode
in interface BSONDecoder
pIn
- the input stream in BSON formatpCallback
- the callbackjava.io.IOException
- if there's a problem reading from the InputStream