org.bson
Class LazyBSONCallback

java.lang.Object
  extended by org.bson.EmptyBSONCallback
      extended by org.bson.LazyBSONCallback
All Implemented Interfaces:
BSONCallback
Direct Known Subclasses:
LazyDBCallback

public class LazyBSONCallback
extends EmptyBSONCallback


Constructor Summary
LazyBSONCallback()
           
 
Method Summary
 List createArray(byte[] data, int offset)
           
 Object createDBRef(String ns, ObjectId id)
           
 Object createObject(byte[] data, int offset)
           
 Object get()
           
 void gotBinary(String name, byte type, byte[] data)
           
 Object objectDone()
           
 void objectStart()
           
 void objectStart(boolean array)
           
 void objectStart(String name)
           
 void reset()
           
 void setRootObject(Object root)
           
 
Methods inherited from class org.bson.EmptyBSONCallback
arrayDone, arrayStart, arrayStart, createBSONCallback, gotBinaryArray, gotBoolean, gotCode, gotCodeWScope, gotDate, gotDBRef, gotDouble, gotInt, gotLong, gotMaxKey, gotMinKey, gotNull, gotObjectId, gotRegex, gotString, gotSymbol, gotTimestamp, gotUndefined, gotUUID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LazyBSONCallback

public LazyBSONCallback()
Method Detail

objectStart

public void objectStart()
Specified by:
objectStart in interface BSONCallback
Overrides:
objectStart in class EmptyBSONCallback

objectStart

public void objectStart(String name)
Specified by:
objectStart in interface BSONCallback
Overrides:
objectStart in class EmptyBSONCallback

objectStart

public void objectStart(boolean array)
Specified by:
objectStart in interface BSONCallback
Overrides:
objectStart in class EmptyBSONCallback

objectDone

public Object objectDone()
Specified by:
objectDone in interface BSONCallback
Overrides:
objectDone in class EmptyBSONCallback

reset

public void reset()
Specified by:
reset in interface BSONCallback
Overrides:
reset in class EmptyBSONCallback

get

public Object get()
Specified by:
get in interface BSONCallback
Overrides:
get in class EmptyBSONCallback

gotBinary

public void gotBinary(String name,
                      byte type,
                      byte[] data)
Specified by:
gotBinary in interface BSONCallback
Overrides:
gotBinary in class EmptyBSONCallback

setRootObject

public void setRootObject(Object root)

createObject

public Object createObject(byte[] data,
                           int offset)

createArray

public List createArray(byte[] data,
                        int offset)

createDBRef

public Object createDBRef(String ns,
                          ObjectId id)