Package com.mongodb
Class LazyDBDecoder
- java.lang.Object
 - 
- org.bson.LazyBSONDecoder
 - 
- com.mongodb.LazyDBDecoder
 
 
 
- 
- All Implemented Interfaces:
 DBDecoder,BSONDecoder
public class LazyDBDecoder extends LazyBSONDecoder implements DBDecoder
A decoder forLazyDBObjectinstances. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static DBDecoderFactoryFACTORY 
- 
Constructor Summary
Constructors Constructor Description LazyDBDecoder() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DBObjectdecode(byte[] bytes, DBCollection collection)Decode a single DBObject belonging to the given collection from the given array of bytes.DBObjectdecode(java.io.InputStream input, DBCollection collection)Decode a single DBObject belonging to the given collection from the given input stream.DBCallbackgetDBCallback(DBCollection collection)Get a callback for the given collection.DBObjectreadObject(java.io.InputStream in)Read a single BSON object from the given input stream.- 
Methods inherited from class org.bson.LazyBSONDecoder
decode, decode, readObject 
- 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface org.bson.BSONDecoder
decode, decode, readObject 
 - 
 
 - 
 
- 
- 
Field Detail
- 
FACTORY
public static final DBDecoderFactory FACTORY
 
 - 
 
- 
Method Detail
- 
getDBCallback
public DBCallback getDBCallback(@Nullable DBCollection collection)
Description copied from interface:DBDecoderGet a callback for the given collection.- Specified by:
 getDBCallbackin interfaceDBDecoder- Parameters:
 collection- the collection- Returns:
 - the callback
 
 
- 
readObject
public DBObject readObject(java.io.InputStream in) throws java.io.IOException
Description copied from interface:BSONDecoderRead a single BSON object from the given input stream.- Specified by:
 readObjectin interfaceBSONDecoder- Overrides:
 readObjectin classLazyBSONDecoder- Parameters:
 in- the input stream in BSON format- Returns:
 - the BSON object for the given bytes
 - Throws:
 java.io.IOException- if there's a problem reading the object from theInputStream
 
- 
decode
public DBObject decode(java.io.InputStream input, DBCollection collection) throws java.io.IOException
Description copied from interface:DBDecoderDecode a single DBObject belonging to the given collection from the given input stream. 
- 
decode
public DBObject decode(byte[] bytes, DBCollection collection)
Description copied from interface:DBDecoderDecode a single DBObject belonging to the given collection from the given array of bytes. 
 - 
 
 -