@Deprecated public class NewBSONDecoder extends 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(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(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(InputStream pIn) throws IOException
BSONDecoder
readObject
in interface BSONDecoder
pIn
- the input stream in BSON formatIOException
- 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(InputStream pIn, BSONCallback pCallback) throws IOException
BSONDecoder
decode
in interface BSONDecoder
pIn
- the input stream in BSON formatpCallback
- the callbackIOException
- if there's a problem reading from the InputStream