DBDecoder
, BSONDecoder
public class LazyDBDecoder extends LazyBSONDecoder implements DBDecoder
LazyDBObject
instances.Modifier and Type | Field | Description |
---|---|---|
static DBDecoderFactory |
FACTORY |
Constructor | Description |
---|---|
LazyDBDecoderβ() |
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.
|
DBObject |
readObjectβ(InputStream in) |
Read a single BSON object from the given input stream.
|
decode, decode, readObject
decode, decode, readObject
public static final DBDecoderFactory FACTORY
public DBCallback getDBCallbackβ(@Nullable DBCollection collection)
DBDecoder
getDBCallback
in interface DBDecoder
collection
- the collectionpublic DBObject readObjectβ(InputStream in) throws IOException
BSONDecoder
readObject
in interface BSONDecoder
readObject
in class LazyBSONDecoder
in
- the input stream in BSON formatIOException
- if there's a problem reading the object from the InputStream
public DBObject decodeβ(InputStream input, DBCollection collection) throws IOException
DBDecoder
decode
in interface DBDecoder
input
- the input streamcollection
- the collectionIOException
- may throw an exception while decoding from the InputStream
public DBObject decodeβ(byte[] bytes, DBCollection collection)
DBDecoder