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(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. | 
| String | toString() | 
decode, decode, readObject, readObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdecode, decode, readObject, readObjectpublic static final DBDecoderFactory FACTORY
public DBCallback getDBCallback(DBCollection collection)
DBDecodergetDBCallback in interface DBDecodercollection - the collectionpublic DBObject decode(InputStream input, DBCollection collection) throws IOException
DBDecoderdecode in interface DBDecoderinput - the input streamcollection - the collectionIOException - may throw an exception while decoding from the InputStreampublic DBObject decode(byte[] bytes, DBCollection collection)
DBDecoder