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 | 
|---|---|
| void | arrayStart(String name)Signals the start of a BSON array, with its field name. | 
| 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(String name)Signals the start of a BSON document, which usually maps onto some Java object. | 
_put, arrayDone, arrayStart, create, createBSONCallback, cur, curName, get, gotBinary, gotBinaryArray, gotBoolean, gotCode, gotCodeWScope, gotDate, gotDBRef, gotDecimal128, gotDouble, gotInt, gotLong, gotMaxKey, gotMinKey, gotNull, gotObjectId, gotRegex, gotString, gotSymbol, gotTimestamp, gotUndefined, gotUUID, isStackEmpty, objectStart, reset, setRootpublic static final String _msDateFormat
public static final String _secDateFormat
public BSONObject create()
BasicBSONCallbackcreate in class BasicBSONCallbackprotected BSONObject createList()
BasicBSONCallbackcreateList in class BasicBSONCallbackpublic void arrayStart(String name)
BSONCallbackarrayStart in interface BSONCallbackarrayStart in class BasicBSONCallbackname - the name of this array fieldpublic void objectStart(String name)
BSONCallbackobjectStart in interface BSONCallbackobjectStart in class BasicBSONCallbackname - the field name of the document.public Object objectDone()
BSONCallbackobjectDone in interface BSONCallbackobjectDone in class BasicBSONCallback