Package com.mongodb
Class LazyDBDecoder
- java.lang.Object
-
- org.bson.LazyBSONDecoder
-
- com.mongodb.LazyDBDecoder
-
-
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 com.mongodb.DBObjectdecode(byte[] bytes, DBCollection collection)Decode a single DBObject belonging to the given collection from the given array of bytes.com.mongodb.DBObjectdecode(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.com.mongodb.DBObjectreadObject(InputStream in)
-
-
-
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 com.mongodb.DBObject readObject(InputStream in) throws IOException
- Specified by:
readObjectin interfaceorg.bson.BSONDecoder- Overrides:
readObjectin classorg.bson.LazyBSONDecoder- Throws:
IOException
-
decode
public com.mongodb.DBObject decode(InputStream input, DBCollection collection) throws IOException
Description copied from interface:DBDecoderDecode a single DBObject belonging to the given collection from the given input stream.- Specified by:
decodein interfaceDBDecoder- Parameters:
input- the input streamcollection- the collection- Returns:
- the DBObject
- Throws:
IOException- may throw an exception while decoding from theInputStream
-
decode
public com.mongodb.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.
-
-