public interface DBDecoder extends BSONDecoder
| Modifier and Type | Method and Description |
|---|---|
DBObject |
decode(byte[] bytes,
DBCollection collection)
Decode a single DBObject belonging to the given collection from the given array of bytes.
|
DBObject |
decode(java.io.InputStream input,
DBCollection collection)
Decode a single DBObject belonging to the given collection from the given input stream.
|
DBCallback |
getDBCallback(DBCollection collection)
Get a callback for the given collection.
|
decode, decode, readObject, readObjectDBCallback getDBCallback(DBCollection collection)
collection - the collectionDBObject decode(java.io.InputStream input, DBCollection collection) throws java.io.IOException
input - the input streamcollection - the collectionjava.io.IOException - may throw an exception while decoding from the InputStreamDBObject decode(byte[] bytes, DBCollection collection)
bytes - the byte arraycollection - the collectionCopyright © 2010 - 2023 Adobe. All Rights Reserved