public class DefaultDBDecoder extends BasicBSONDecoder implements DBDecoder
Modifier and Type | Field and Description |
---|---|
static DBDecoderFactory |
FACTORY |
Constructor and Description |
---|
DefaultDBDecoder() |
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.
|
java.lang.String |
toString() |
decode, decode, readObject, readObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
decode, decode, readObject, readObject
public static final DBDecoderFactory FACTORY
public DBCallback getDBCallback(DBCollection collection)
DBDecoder
getDBCallback
in interface DBDecoder
collection
- the collectionpublic DBObject decode(java.io.InputStream input, DBCollection collection) throws java.io.IOException
DBDecoder
public DBObject decode(byte[] bytes, DBCollection collection)
DBDecoder
public java.lang.String toString()
toString
in class java.lang.Object