Class 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 java.lang.String _msDateFormat
      Deprecated. 
       
      static java.lang.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​(java.lang.String name)
      Deprecated. 
       
      org.bson.BSONObject create​()
      Deprecated. 
       
      protected org.bson.BSONObject createList​()
      Deprecated. 
       
      java.lang.Object objectDone​()
      Deprecated. 
       
      void objectStart​(java.lang.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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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

      • create

        public org.bson.BSONObject create​()
        Deprecated. 
        Overrides:
        create in class org.bson.BasicBSONCallback
      • createList

        protected org.bson.BSONObject createList​()
        Deprecated. 
        Overrides:
        createList in class org.bson.BasicBSONCallback
      • arrayStart

        public void arrayStart​(java.lang.String name)
        Deprecated. 
        Overrides:
        arrayStart in class org.bson.BasicBSONCallback
      • objectStart

        public void objectStart​(java.lang.String name)
        Deprecated. 
        Overrides:
        objectStart in class org.bson.BasicBSONCallback
      • objectDone

        public java.lang.Object objectDone​()
        Deprecated. 
        Overrides:
        objectDone in class org.bson.BasicBSONCallback