@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)
BSONDecoderreadObject in interface BSONDecoderpData - the bytes in BSON formatpublic BSONObject readObject(InputStream pIn) throws IOException
BSONDecoderreadObject in interface BSONDecoderpIn - the input stream in BSON formatIOException - 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(InputStream pIn, BSONCallback pCallback) throws IOException
BSONDecoderdecode in interface BSONDecoderpIn - the input stream in BSON formatpCallback - the callbackIOException - if there's a problem reading from the InputStream