public class LazyBSONDecoder extends java.lang.Object implements BSONDecoder
LazyBSONObject
instances.Constructor and Description |
---|
LazyBSONDecoder() |
Modifier and Type | Method and Description |
---|---|
int |
decode(byte[] bytes,
BSONCallback callback)
Decode a single BSON object into the given callback from the given byte array.
|
int |
decode(java.io.InputStream in,
BSONCallback callback)
Decode a single BSON object into the given callback from the given input stream.
|
BSONObject |
readObject(byte[] bytes)
Read a single BSON object from the given bytes.
|
BSONObject |
readObject(java.io.InputStream in)
Read a single BSON object from the given input stream.
|
public BSONObject readObject(byte[] bytes)
BSONDecoder
readObject
in interface BSONDecoder
bytes
- the bytes in BSON formatpublic BSONObject readObject(java.io.InputStream in) throws java.io.IOException
BSONDecoder
readObject
in interface BSONDecoder
in
- the input stream in BSON formatjava.io.IOException
- if there's a problem reading the object from the InputStream
public int decode(byte[] bytes, BSONCallback callback)
BSONDecoder
decode
in interface BSONDecoder
bytes
- the bytes in BSON formatcallback
- the callbackpublic int decode(java.io.InputStream in, BSONCallback callback) throws java.io.IOException
BSONDecoder
decode
in interface BSONDecoder
in
- the input stream in BSON formatcallback
- the callbackjava.io.IOException
- if there's a problem reading from the InputStream