DBDecoder, BSONDecoderpublic class LazyDBDecoder extends LazyBSONDecoder implements DBDecoder
LazyDBObject instances.| Modifier and Type | Field | Description | 
|---|---|---|
| static DBDecoderFactory | FACTORY | 
| Constructor | Description | 
|---|---|
| LazyDBDecoder() | 
| Modifier and Type | Method | Description | 
|---|---|---|
| DBObject | decode(byte[] bytes,
      DBCollection collection) | Decode a single DBObject belonging to the given collection from the given array of bytes. | 
| DBObject | decode(InputStream input,
      DBCollection collection) | Decode a single DBObject belonging to the given collection from the given input stream. | 
| DBCallback | getDBCallback(DBCollection collection) | Get a callback for the given collection. | 
| DBObject | readObject(InputStream in) | Read a single BSON object from the given input stream. | 
decode, decode, readObjectdecode, decode, readObjectpublic static final DBDecoderFactory FACTORY
public DBCallback getDBCallback(@Nullable DBCollection collection)
DBDecodergetDBCallback in interface DBDecodercollection - the collectionpublic DBObject readObject(InputStream in) throws IOException
BSONDecoderreadObject in interface BSONDecoderreadObject in class LazyBSONDecoderin - the input stream in BSON formatIOException - if there's a problem reading the object from the InputStreampublic DBObject decode(InputStream input, DBCollection collection) throws IOException
DBDecoderdecode in interface DBDecoderinput - the input streamcollection - the collectionIOException - may throw an exception while decoding from the InputStreampublic DBObject decode(byte[] bytes, DBCollection collection)
DBDecoder