Package com.mongodb
Class LazyDBDecoder
java.lang.Object
org.bson.LazyBSONDecoder
com.mongodb.LazyDBDecoder
- All Implemented Interfaces:
DBDecoder,BSONDecoder
A decoder for
LazyDBObject instances.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DBDecoderFactoryTheDBDecoderFactoryforLazyDBDecoderinstances. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode(byte[] bytes, DBCollection collection) Decode a single DBObject belonging to the given collection from the given array of bytes.decode(InputStream input, DBCollection collection) Decode a single DBObject belonging to the given collection from the given input stream.getDBCallback(DBCollection collection) Get a callback for the given collection.Methods inherited from class org.bson.LazyBSONDecoder
decode, decode, readObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bson.BSONDecoder
decode, decode, readObject
-
Field Details
-
FACTORY
TheDBDecoderFactoryforLazyDBDecoderinstances.
-
-
Constructor Details
-
LazyDBDecoder
public LazyDBDecoder()
-
-
Method Details
-
getDBCallback
Description copied from interface:DBDecoderGet a callback for the given collection.- Specified by:
getDBCallbackin interfaceDBDecoder- Parameters:
collection- the collection- Returns:
- the callback
-
readObject
- Specified by:
readObjectin interfaceBSONDecoder- Overrides:
readObjectin classLazyBSONDecoder- Throws:
IOException
-
decode
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
Description copied from interface:DBDecoderDecode a single DBObject belonging to the given collection from the given array of bytes.
-