Package com.mongodb
Class DefaultDBDecoder
java.lang.Object
org.bson.BasicBSONDecoder
com.mongodb.DefaultDBDecoder
- All Implemented Interfaces:
- DBDecoder,- BSONDecoder
An implementation of DBDecoder
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final DBDecoderFactoryTheDBDecoderFactoryforDefaultDBDecoderinstances.
- 
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.toString()Methods inherited from class org.bson.BasicBSONDecoderdecode, decode, getDefaultUuidRepresentation, readObject, readObject, setDefaultUuidRepresentationMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bson.BSONDecoderdecode, decode, readObject, readObject
- 
Field Details- 
FACTORYTheDBDecoderFactoryforDefaultDBDecoderinstances.
 
- 
- 
Constructor Details- 
DefaultDBDecoderpublic DefaultDBDecoder()
 
- 
- 
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
 
- 
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.
- 
toString
 
-