org.bson
Class LazyBSONDecoder

java.lang.Object
  extended by org.bson.LazyBSONDecoder
All Implemented Interfaces:
BSONDecoder
Direct Known Subclasses:
LazyDBDecoder

public class LazyBSONDecoder
extends Object
implements BSONDecoder

implementation of BSONDecoder that creates LazyBSONObject instances


Constructor Summary
LazyBSONDecoder()
           
 
Method Summary
 int decode(byte[] b, BSONCallback callback)
           
 int decode(InputStream in, BSONCallback callback)
           
 BSONObject readObject(byte[] b)
           
 BSONObject readObject(InputStream in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LazyBSONDecoder

public LazyBSONDecoder()
Method Detail

readObject

public BSONObject readObject(byte[] b)
Specified by:
readObject in interface BSONDecoder

readObject

public BSONObject readObject(InputStream in)
                      throws IOException
Specified by:
readObject in interface BSONDecoder
Throws:
IOException

decode

public int decode(byte[] b,
                  BSONCallback callback)
Specified by:
decode in interface BSONDecoder

decode

public int decode(InputStream in,
                  BSONCallback callback)
           throws IOException
Specified by:
decode in interface BSONDecoder
Throws:
IOException