Package com.mongodb.util
Class JSONCallback
- java.lang.Object
-
- org.bson.BasicBSONCallback
-
- com.mongodb.util.JSONCallback
-
Deprecated.This class has been superseded by to toJson and parse methods on BasicDBObject
@Deprecated public class JSONCallback extends org.bson.BasicBSONCallback
Converts JSON to DBObjects and vice versa.
-
-
Field Summary
Fields Modifier and Type Field Description static String_msDateFormatDeprecated.static String_secDateFormatDeprecated.
-
Constructor Summary
Constructors Constructor Description JSONCallback()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidarrayStart(String name)Deprecated.org.bson.BSONObjectcreate()Deprecated.protected org.bson.BSONObjectcreateList()Deprecated.ObjectobjectDone()Deprecated.voidobjectStart(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:
createin classorg.bson.BasicBSONCallback
-
createList
protected org.bson.BSONObject createList()
Deprecated.- Overrides:
createListin classorg.bson.BasicBSONCallback
-
arrayStart
public void arrayStart(String name)
Deprecated.- Overrides:
arrayStartin classorg.bson.BasicBSONCallback
-
objectStart
public void objectStart(String name)
Deprecated.- Overrides:
objectStartin classorg.bson.BasicBSONCallback
-
objectDone
public Object objectDone()
Deprecated.- Overrides:
objectDonein classorg.bson.BasicBSONCallback
-
-