Package com.mongodb
Interface DBDecoder
- 
- All Superinterfaces:
 BSONDecoder
- All Known Implementing Classes:
 DefaultDBDecoder,LazyDBDecoder
@Deprecated(since="2021-05-27") public interface DBDecoder extends BSONDecoder
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.An interface for decoders of BSON into instances of DBObject that belong to a DBCollection. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description DBObjectdecode(byte[] bytes, DBCollection collection)Deprecated.Decode a single DBObject belonging to the given collection from the given array of bytes.DBObjectdecode(java.io.InputStream input, DBCollection collection)Deprecated.Decode a single DBObject belonging to the given collection from the given input stream.DBCallbackgetDBCallback(DBCollection collection)Deprecated.Get a callback for the given collection.- 
Methods inherited from interface org.bson.BSONDecoder
decode, decode, readObject, readObject 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getDBCallback
DBCallback getDBCallback(DBCollection collection)
Deprecated.Get a callback for the given collection.- Parameters:
 collection- the collection- Returns:
 - the callback
 
 
- 
decode
DBObject decode(java.io.InputStream input, DBCollection collection) throws java.io.IOException
Deprecated.Decode a single DBObject belonging to the given collection from the given input stream.- Parameters:
 input- the input streamcollection- the collection- Returns:
 - the DBObject
 - Throws:
 java.io.IOException- may throw an exception while decoding from theInputStream
 
- 
decode
DBObject decode(byte[] bytes, DBCollection collection)
Deprecated.Decode a single DBObject belonging to the given collection from the given array of bytes.- Parameters:
 bytes- the byte arraycollection- the collection- Returns:
 - the DBObject
 
 
 - 
 
 -