Class JSONCallback

  • All Implemented Interfaces:
    BSONCallback

    @Deprecated
    public class JSONCallback
    extends BasicBSONCallback
    Deprecated.
    This class has been superseded by to toJson and parse methods on BasicDBObject
    Converts JSON to DBObjects and vice versa.
    • 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
    • Constructor Detail

      • JSONCallback

        public JSONCallback()
        Deprecated.
    • Method Detail

      • arrayStart

        public void arrayStart​(java.lang.String name)
        Deprecated.
        Description copied from interface: BSONCallback
        Signals the start of a BSON array, with its field name.
        Specified by:
        arrayStart in interface BSONCallback
        Overrides:
        arrayStart in class BasicBSONCallback
        Parameters:
        name - the name of this array field
      • objectStart

        public void objectStart​(java.lang.String name)
        Deprecated.
        Description copied from interface: BSONCallback
        Signals the start of a BSON document, which usually maps onto some Java object.
        Specified by:
        objectStart in interface BSONCallback
        Overrides:
        objectStart in class BasicBSONCallback
        Parameters:
        name - the field name of the document.
      • objectDone

        public java.lang.Object objectDone()
        Deprecated.
        Description copied from interface: BSONCallback
        Called at the end of the document/array, and returns this object.
        Specified by:
        objectDone in interface BSONCallback
        Overrides:
        objectDone in class BasicBSONCallback
        Returns:
        the Object that has been read from this section of the document.