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(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(InputStream input, DBCollection collection) throws IOException
input - the input streamcollection - the collectionIOException - may throw an exception while decoding from the InputStreamDBObject decode(byte[] bytes, DBCollection collection)
bytes - the byte arraycollection - the collection