Package com.mongodb.util
Class JSONCallback
- java.lang.Object
-
- org.bson.BasicBSONCallback
-
- com.mongodb.util.JSONCallback
-
- All Implemented Interfaces:
org.bson.BSONCallback
@Deprecated public class JSONCallback extends org.bson.BasicBSONCallback
Deprecated.This class has been superseded by to toJson and parse methods on BasicDBObjectConverts JSON to DBObjects and vice versa.
-
-
Field Summary
Fields Modifier and Type Field Description static String
_msDateFormat
Deprecated.static String
_secDateFormat
Deprecated.
-
Constructor Summary
Constructors Constructor Description JSONCallback()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
arrayStart(String name)
Deprecated.org.bson.BSONObject
create()
Deprecated.protected org.bson.BSONObject
createList()
Deprecated.Object
objectDone()
Deprecated.void
objectStart(String name)
Deprecated.-
Methods inherited from class org.bson.BasicBSONCallback
_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, setRoot
-
-
-
-
Field Detail
-
_msDateFormat
public static final String _msDateFormat
Deprecated.- See Also:
- Constant Field Values
-
_secDateFormat
public static final String _secDateFormat
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public org.bson.BSONObject create()
Deprecated.- Overrides:
create
in classorg.bson.BasicBSONCallback
-
createList
protected org.bson.BSONObject createList()
Deprecated.- Overrides:
createList
in classorg.bson.BasicBSONCallback
-
arrayStart
public void arrayStart(String name)
Deprecated.- Specified by:
arrayStart
in interfaceorg.bson.BSONCallback
- Overrides:
arrayStart
in classorg.bson.BasicBSONCallback
-
objectStart
public void objectStart(String name)
Deprecated.- Specified by:
objectStart
in interfaceorg.bson.BSONCallback
- Overrides:
objectStart
in classorg.bson.BasicBSONCallback
-
objectDone
public Object objectDone()
Deprecated.- Specified by:
objectDone
in interfaceorg.bson.BSONCallback
- Overrides:
objectDone
in classorg.bson.BasicBSONCallback
-
-