public class LazyBSONDecoder extends 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(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(InputStream in)Read a single BSON object from the given input stream. | 
public BSONObject readObject(byte[] bytes)
BSONDecoderreadObject in interface BSONDecoderbytes - the bytes in BSON formatpublic BSONObject readObject(InputStream in) throws IOException
BSONDecoderreadObject in interface BSONDecoderin - the input stream in BSON formatIOException - if there's a problem reading the object from the InputStreampublic int decode(byte[] bytes,
                  BSONCallback callback)
BSONDecoderdecode in interface BSONDecoderbytes - the bytes in BSON formatcallback - the callbackpublic int decode(InputStream in, BSONCallback callback) throws IOException
BSONDecoderdecode in interface BSONDecoderin - the input stream in BSON formatcallback - the callbackIOException - if there's a problem reading from the InputStream