public class BasicBSONCallback extends Object implements BSONCallback
| Constructor and Description |
|---|
BasicBSONCallback() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_put(String name,
Object o) |
Object |
arrayDone() |
void |
arrayStart() |
void |
arrayStart(String name) |
BSONObject |
create() |
BSONObject |
create(boolean array,
List<String> path) |
BSONCallback |
createBSONCallback() |
protected BSONObject |
createList() |
protected BSONObject |
cur() |
protected String |
curName() |
Object |
get() |
void |
gotBinary(String name,
byte type,
byte[] data) |
void |
gotBinaryArray(String name,
byte[] data)
Deprecated.
|
void |
gotBoolean(String name,
boolean v) |
void |
gotCode(String name,
String code) |
void |
gotCodeWScope(String name,
String code,
Object scope) |
void |
gotDate(String name,
long millis) |
void |
gotDBRef(String name,
String ns,
ObjectId id)
Invoked when
BSONDecoder encountered a DBPointer(0x0c) type field in a byte sequence. |
void |
gotDouble(String name,
double v) |
void |
gotInt(String name,
int v) |
void |
gotLong(String name,
long v) |
void |
gotMaxKey(String name) |
void |
gotMinKey(String name) |
void |
gotNull(String name) |
void |
gotObjectId(String name,
ObjectId id) |
void |
gotRegex(String name,
String pattern,
String flags) |
void |
gotString(String name,
String v) |
void |
gotSymbol(String name,
String v) |
void |
gotTimestamp(String name,
int time,
int inc) |
void |
gotUndefined(String name) |
void |
gotUUID(String name,
long part1,
long part2)
subtype 3
|
protected boolean |
isStackEmpty() |
Object |
objectDone() |
void |
objectStart() |
void |
objectStart(boolean array) |
void |
objectStart(boolean array,
String name) |
void |
objectStart(String name) |
void |
reset() |
protected void |
setRoot(Object o) |
public BSONObject create()
protected BSONObject createList()
public BSONCallback createBSONCallback()
createBSONCallback in interface BSONCallbackpublic BSONObject create(boolean array, List<String> path)
public void objectStart()
objectStart in interface BSONCallbackpublic void objectStart(boolean array)
objectStart in interface BSONCallbackpublic void objectStart(String name)
objectStart in interface BSONCallbackpublic void objectStart(boolean array,
String name)
public Object objectDone()
objectDone in interface BSONCallbackpublic void arrayStart()
arrayStart in interface BSONCallbackpublic void arrayStart(String name)
arrayStart in interface BSONCallbackpublic Object arrayDone()
arrayDone in interface BSONCallbackpublic void gotNull(String name)
gotNull in interface BSONCallbackpublic void gotUndefined(String name)
gotUndefined in interface BSONCallbackpublic void gotMinKey(String name)
gotMinKey in interface BSONCallbackpublic void gotMaxKey(String name)
gotMaxKey in interface BSONCallbackpublic void gotBoolean(String name, boolean v)
gotBoolean in interface BSONCallbackpublic void gotDouble(String name, double v)
gotDouble in interface BSONCallbackpublic void gotInt(String name, int v)
gotInt in interface BSONCallbackpublic void gotLong(String name, long v)
gotLong in interface BSONCallbackpublic void gotDate(String name, long millis)
gotDate in interface BSONCallbackpublic void gotRegex(String name, String pattern, String flags)
gotRegex in interface BSONCallbackpublic void gotString(String name, String v)
gotString in interface BSONCallbackpublic void gotSymbol(String name, String v)
gotSymbol in interface BSONCallbackpublic void gotTimestamp(String name, int time, int inc)
gotTimestamp in interface BSONCallbackpublic void gotObjectId(String name, ObjectId id)
gotObjectId in interface BSONCallbackpublic void gotDBRef(String name, String ns, ObjectId id)
BSONCallbackBSONDecoder encountered a DBPointer(0x0c) type field in a byte sequence.gotDBRef in interface BSONCallbackname - the name of the fieldns - the namespace to which reference is pointing toid - the if of the object to which reference is pointing to@Deprecated public void gotBinaryArray(String name, byte[] data)
gotBinaryArray in interface BSONCallbackpublic void gotBinary(String name, byte type, byte[] data)
gotBinary in interface BSONCallbackpublic void gotUUID(String name, long part1, long part2)
BSONCallbackgotUUID in interface BSONCallbackpublic void gotCode(String name, String code)
gotCode in interface BSONCallbackpublic void gotCodeWScope(String name, String code, Object scope)
gotCodeWScope in interface BSONCallbackprotected BSONObject cur()
protected String curName()
public Object get()
get in interface BSONCallbackprotected void setRoot(Object o)
protected boolean isStackEmpty()
public void reset()
reset in interface BSONCallback