org.bson
Class BSONDecoder

java.lang.Object
  extended by org.bson.BSONDecoder

public class BSONDecoder
extends Object


Nested Class Summary
protected  class BSONDecoder.Input
           
 
Field Summary
protected  BSONCallback _callback
           
protected  BSONDecoder.Input _in
           
 
Constructor Summary
BSONDecoder()
           
 
Method Summary
protected  void _binary(String name)
           
 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
 

Field Detail

_in

protected BSONDecoder.Input _in

_callback

protected BSONCallback _callback
Constructor Detail

BSONDecoder

public BSONDecoder()
Method Detail

readObject

public BSONObject readObject(byte[] b)

readObject

public BSONObject readObject(InputStream in)
                      throws IOException
Throws:
IOException

decode

public int decode(byte[] b,
                  BSONCallback callback)

decode

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

_binary

protected void _binary(String name)
                throws IOException
Throws:
IOException