org.bson
Class NewBSONDecoder

java.lang.Object
  extended by org.bson.NewBSONDecoder
All Implemented Interfaces:
BSONDecoder

public class NewBSONDecoder
extends Object
implements BSONDecoder

A new implementation of the bson decoder.


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

Constructor Detail

NewBSONDecoder

public NewBSONDecoder()
Method Detail

readObject

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

readObject

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

decode

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

decode

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