public class JSONCallback extends BasicBSONCallback
Modifier and Type | Field and Description |
---|---|
static String |
_msDateFormat |
static String |
_secDateFormat |
Constructor and Description |
---|
JSONCallback() |
Modifier and Type | Method and Description |
---|---|
BSONObject |
create()
Factory method for creating a new BSONObject.
|
protected BSONObject |
createList()
Factory method for creating a new BSON List.
|
Object |
objectDone()
Called at the end of the document/array, and returns this object.
|
void |
objectStart(boolean array,
String name)
Deprecated.
instead, use
BasicBSONCallback.arrayStart(String) if array is true, and BasicBSONCallback.objectStart(String) if array
is false |
_put, arrayDone, arrayStart, arrayStart, create, createBSONCallback, cur, curName, get, gotBinary, gotBinaryArray, gotBoolean, gotCode, gotCodeWScope, gotDate, gotDBRef, gotDouble, gotInt, gotLong, gotMaxKey, gotMinKey, gotNull, gotObjectId, gotRegex, gotString, gotSymbol, gotTimestamp, gotUndefined, gotUUID, isStackEmpty, objectStart, objectStart, objectStart, reset, setRoot
public static final String _msDateFormat
public static final String _secDateFormat
public BSONObject create()
BasicBSONCallback
create
in class BasicBSONCallback
protected BSONObject createList()
BasicBSONCallback
createList
in class BasicBSONCallback
@Deprecated public void objectStart(boolean array, String name)
BasicBSONCallback.arrayStart(String)
if array
is true, and BasicBSONCallback.objectStart(String)
if array
is falseobjectStart
in class BasicBSONCallback
public Object objectDone()
BSONCallback
objectDone
in interface BSONCallback
objectDone
in class BasicBSONCallback