org.bson
Interface BSONDecoder

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

public interface BSONDecoder


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

Method Detail

readObject

BSONObject readObject(byte[] b)

readObject

BSONObject readObject(InputStream in)
                      throws IOException
Throws:
IOException

decode

int decode(byte[] b,
           BSONCallback callback)

decode

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