public class LazyBSONCallback extends EmptyBSONCallback
Constructor and Description |
---|
LazyBSONCallback() |
Modifier and Type | Method and Description |
---|---|
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)
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
|
arrayDone, arrayStart, arrayStart, createBSONCallback, gotBinaryArray, gotBoolean, gotCode, gotCodeWScope, gotDate, gotDBRef, gotDouble, gotInt, gotLong, gotMaxKey, gotMinKey, gotNull, gotObjectId, gotRegex, gotString, gotSymbol, gotTimestamp, gotUndefined, gotUUID
public void objectStart()
objectStart
in interface BSONCallback
objectStart
in class EmptyBSONCallback
public void objectStart(String name)
objectStart
in interface BSONCallback
objectStart
in class EmptyBSONCallback
public void objectStart(boolean array)
objectStart
in interface BSONCallback
objectStart
in class EmptyBSONCallback
public Object objectDone()
objectDone
in interface BSONCallback
objectDone
in class EmptyBSONCallback
public void reset()
reset
in interface BSONCallback
reset
in class EmptyBSONCallback
public Object get()
get
in interface BSONCallback
get
in class EmptyBSONCallback
public void gotBinary(String name, byte type, byte[] data)
gotBinary
in interface BSONCallback
gotBinary
in class EmptyBSONCallback
@Deprecated public void setRootObject(Object root)
public Object createObject(byte[] data, int offset)
public List createArray(byte[] data, int offset)