BSONDecoder
DefaultDBDecoder
, LazyDBDecoder
public interface DBDecoder extends BSONDecoder
Modifier and Type | Method | 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, readObject
DBCallback 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 InputStream
DBObject decodeβ(byte[] bytes, DBCollection collection)
bytes
- the byte arraycollection
- the collection