com.mongodb
Class DefaultDBDecoder

java.lang.Object
  extended by org.bson.BasicBSONDecoder
      extended by com.mongodb.DefaultDBDecoder
All Implemented Interfaces:
DBDecoder, BSONDecoder

public class DefaultDBDecoder
extends BasicBSONDecoder
implements DBDecoder

Author:
antoine

Nested Class Summary
 
Nested classes/interfaces inherited from class org.bson.BasicBSONDecoder
BasicBSONDecoder.Input
 
Field Summary
static DBDecoderFactory FACTORY
           
 
Fields inherited from class org.bson.BasicBSONDecoder
_callback, _in
 
Constructor Summary
DefaultDBDecoder()
           
 
Method Summary
 DBObject decode(byte[] b, DBCollection collection)
           
 DBObject decode(InputStream in, DBCollection collection)
           
 DBCallback getDBCallback(DBCollection collection)
           
 
Methods inherited from class org.bson.BasicBSONDecoder
_binary, decode, decode, readObject, readObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.bson.BSONDecoder
decode, decode, readObject, readObject
 

Field Detail

FACTORY

public static DBDecoderFactory FACTORY
Constructor Detail

DefaultDBDecoder

public DefaultDBDecoder()
Method Detail

getDBCallback

public DBCallback getDBCallback(DBCollection collection)
Specified by:
getDBCallback in interface DBDecoder

decode

public DBObject decode(byte[] b,
                       DBCollection collection)
Specified by:
decode in interface DBDecoder

decode

public DBObject decode(InputStream in,
                       DBCollection collection)
                throws IOException
Specified by:
decode in interface DBDecoder
Throws:
IOException