Package com.mongodb
Interface DBDecoder
- All Superinterfaces:
- BSONDecoder
- All Known Implementing Classes:
- DefaultDBDecoder,- LazyDBDecoder
An interface for decoders of BSON into instances of DBObject that belong to a DBCollection.
- 
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 interface org.bson.BSONDecoderdecode, decode, readObject, readObject
- 
Method Details- 
getDBCallbackGet a callback for the given collection.- Parameters:
- collection- the collection
- Returns:
- the callback
 
- 
decodeDecode a single DBObject belonging to the given collection from the given input stream.- Parameters:
- input- the input stream
- collection- the collection
- Returns:
- the DBObject
- Throws:
- IOException- may throw an exception while decoding from the- InputStream
 
- 
decodeDecode a single DBObject belonging to the given collection from the given array of bytes.- Parameters:
- bytes- the byte array
- collection- the collection
- Returns:
- the DBObject
 
 
-