@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)
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 InputStream