org.bson
Interface BSONDecoder

All Known Subinterfaces:
DBDecoder
All Known Implementing Classes:
BasicBSONDecoder, DefaultDBDecoder, LazyBSONDecoder, LazyDBDecoder

public interface BSONDecoder


Method Summary
 int decode(byte[] b, BSONCallback callback)
           
 int decode(java.io.InputStream in, BSONCallback callback)
           
 BSONObject readObject(byte[] b)
           
 BSONObject readObject(java.io.InputStream in)
           
 

Method Detail

readObject

BSONObject readObject(byte[] b)

readObject

BSONObject readObject(java.io.InputStream in)
                      throws java.io.IOException
Throws:
java.io.IOException

decode

int decode(byte[] b,
           BSONCallback callback)

decode

int decode(java.io.InputStream in,
           BSONCallback callback)
           throws java.io.IOException
Throws:
java.io.IOException