public class BasicBSONCallback extends Object implements BSONCallback
| 构造器和说明 |
|---|
BasicBSONCallback() |
| 限定符和类型 | 方法和说明 |
|---|---|
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)
已过时。
|
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) |
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 在接口中 BSONCallbackpublic BSONObject create(boolean array, List<String> path)
public void objectStart()
objectStart 在接口中 BSONCallbackpublic void objectStart(boolean array)
objectStart 在接口中 BSONCallbackpublic void objectStart(String name)
objectStart 在接口中 BSONCallbackpublic void objectStart(boolean array,
String name)
public Object objectDone()
objectDone 在接口中 BSONCallbackpublic void arrayStart()
arrayStart 在接口中 BSONCallbackpublic void arrayStart(String name)
arrayStart 在接口中 BSONCallbackpublic Object arrayDone()
arrayDone 在接口中 BSONCallbackpublic void gotNull(String name)
gotNull 在接口中 BSONCallbackpublic void gotUndefined(String name)
gotUndefined 在接口中 BSONCallbackpublic void gotMinKey(String name)
gotMinKey 在接口中 BSONCallbackpublic void gotMaxKey(String name)
gotMaxKey 在接口中 BSONCallbackpublic void gotBoolean(String name, boolean v)
gotBoolean 在接口中 BSONCallbackpublic void gotDouble(String name, double v)
gotDouble 在接口中 BSONCallbackpublic void gotInt(String name, int v)
gotInt 在接口中 BSONCallbackpublic void gotLong(String name, long v)
gotLong 在接口中 BSONCallbackpublic void gotDate(String name, long millis)
gotDate 在接口中 BSONCallbackpublic void gotRegex(String name, String pattern, String flags)
gotRegex 在接口中 BSONCallbackpublic void gotString(String name, String v)
gotString 在接口中 BSONCallbackpublic void gotSymbol(String name, String v)
gotSymbol 在接口中 BSONCallbackpublic void gotTimestamp(String name, int time, int inc)
gotTimestamp 在接口中 BSONCallbackpublic void gotObjectId(String name, ObjectId id)
gotObjectId 在接口中 BSONCallbackpublic void gotDBRef(String name, String ns, ObjectId id)
gotDBRef 在接口中 BSONCallback@Deprecated public void gotBinaryArray(String name, byte[] data)
gotBinaryArray 在接口中 BSONCallbackpublic void gotBinary(String name, byte type, byte[] data)
gotBinary 在接口中 BSONCallbackpublic void gotUUID(String name, long part1, long part2)
BSONCallbackgotUUID 在接口中 BSONCallbackpublic void gotCode(String name, String code)
gotCode 在接口中 BSONCallbackpublic void gotCodeWScope(String name, String code, Object scope)
gotCodeWScope 在接口中 BSONCallbackprotected BSONObject cur()
protected String curName()
public Object get()
get 在接口中 BSONCallbackprotected void setRoot(Object o)
protected boolean isStackEmpty()
public void reset()
reset 在接口中 BSONCallbackCopyright © 2015. All Rights Reserved.