public class LazyDBDecoder extends LazyBSONDecoder implements DBDecoder
LazyDBObject instances.| Modifier and Type | Field and Description |
|---|---|
static DBDecoderFactory |
FACTORY |
| Constructor and Description |
|---|
LazyDBDecoder() |
| 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.
|
DBObject |
readObject(java.io.InputStream in)
Read a single BSON object from the given input stream.
|
decode, decode, readObjectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecode, decode, readObjectpublic static final DBDecoderFactory FACTORY
public DBCallback getDBCallback(@Nullable DBCollection collection)
DBDecodergetDBCallback in interface DBDecodercollection - the collectionpublic DBObject readObject(java.io.InputStream in) throws java.io.IOException
BSONDecoderreadObject in interface BSONDecoderreadObject in class LazyBSONDecoderin - the input stream in BSON formatjava.io.IOException - if there's a problem reading the object from the InputStreampublic DBObject decode(java.io.InputStream input, DBCollection collection) throws java.io.IOException
DBDecoderpublic DBObject decode(byte[] bytes, DBCollection collection)
DBDecoderCopyright © 2010 - 2023 Adobe. All Rights Reserved