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 SummaryFieldsModifier and TypeFieldDescriptionstatic final DBDecoderFactoryTheDBDecoderFactoryforLazyDBDecoderinstances.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.LazyBSONDecoderdecode, decode, readObjectMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bson.BSONDecoderdecode, decode, readObject
- 
Field Details- 
FACTORYTheDBDecoderFactoryforLazyDBDecoderinstances.
 
- 
- 
Constructor Details- 
LazyDBDecoderpublic LazyDBDecoder()
 
- 
- 
Method Details- 
getDBCallbackDescription copied from interface:DBDecoderGet a callback for the given collection.- Specified by:
- getDBCallbackin interface- DBDecoder
- Parameters:
- collection- the collection
- Returns:
- the callback
 
- 
readObject- Specified by:
- readObjectin interface- BSONDecoder
- Overrides:
- readObjectin class- LazyBSONDecoder
- Throws:
- IOException
 
- 
decodeDescription copied from interface:DBDecoderDecode a single DBObject belonging to the given collection from the given input stream.- Specified by:
- decodein interface- DBDecoder
- Parameters:
- input- the input stream
- collection- the collection
- Returns:
- the DBObject
- Throws:
- IOException- may throw an exception while decoding from the- InputStream
 
- 
decodeDescription copied from interface:DBDecoderDecode a single DBObject belonging to the given collection from the given array of bytes.
 
-