Package com.mongodb.util
Class JSONCallback
- java.lang.Object
-
- org.bson.BasicBSONCallback
-
- com.mongodb.util.JSONCallback
-
- All Implemented Interfaces:
BSONCallback
@Deprecated public class JSONCallback extends 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 java.lang.String_msDateFormatDeprecated.static java.lang.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(java.lang.String name)Deprecated.Signals the start of a BSON array, with its field name.BSONObjectcreate()Deprecated.Factory method for creating a new BSONObject.java.lang.ObjectobjectDone()Deprecated.Called at the end of the document/array, and returns this object.voidobjectStart(java.lang.String name)Deprecated.Signals the start of a BSON document, which usually maps onto some Java object.-
Methods inherited from class org.bson.BasicBSONCallback
arrayDone, arrayStart, create, createBSONCallback, get, gotBinary, gotBinaryArray, gotBoolean, gotCode, gotCodeWScope, gotDate, gotDBRef, gotDecimal128, gotDouble, gotInt, gotLong, gotMaxKey, gotMinKey, gotNull, gotObjectId, gotRegex, gotString, gotSymbol, gotTimestamp, gotUndefined, gotUUID, objectStart, reset
-
-
-
-
Field Detail
-
_msDateFormat
public static final java.lang.String _msDateFormat
Deprecated.- See Also:
- Constant Field Values
-
_secDateFormat
public static final java.lang.String _secDateFormat
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public BSONObject create()
Deprecated.Description copied from class:BasicBSONCallbackFactory method for creating a new BSONObject.- Overrides:
createin classBasicBSONCallback- Returns:
- a new BasicBSONObject.
-
arrayStart
public void arrayStart(java.lang.String name)
Deprecated.Description copied from interface:BSONCallbackSignals the start of a BSON array, with its field name.- Specified by:
arrayStartin interfaceBSONCallback- Overrides:
arrayStartin classBasicBSONCallback- Parameters:
name- the name of this array field
-
objectStart
public void objectStart(java.lang.String name)
Deprecated.Description copied from interface:BSONCallbackSignals the start of a BSON document, which usually maps onto some Java object.- Specified by:
objectStartin interfaceBSONCallback- Overrides:
objectStartin classBasicBSONCallback- Parameters:
name- the field name of the document.
-
objectDone
public java.lang.Object objectDone()
Deprecated.Description copied from interface:BSONCallbackCalled at the end of the document/array, and returns this object.- Specified by:
objectDonein interfaceBSONCallback- Overrides:
objectDonein classBasicBSONCallback- Returns:
- the Object that has been read from this section of the document.
-
-