Class JSONSerializerListener.Adapter

  • All Implemented Interfaces:
    JSONSerializerListener
    Enclosing interface:
    JSONSerializerListener

    @Deprecated
    public static final class JSONSerializerListener.Adapter
    extends java.lang.Object
    implements JSONSerializerListener
    Deprecated.
    Since 2.1 and Java 8 the interface itself has default implementations.
    JSON serializer listener adapter.
    • Constructor Detail

      • Adapter

        public Adapter()
        Deprecated.
    • Method Detail

      • beginDictionary

        public void beginDictionary​(JSONSerializer jsonSerializer,
                                    Dictionary<java.lang.String,​?> value)
        Deprecated.
        Description copied from interface: JSONSerializerListener
        Called when the serializer has begun reading a dictionary value.
        Specified by:
        beginDictionary in interface JSONSerializerListener
        Parameters:
        jsonSerializer - The serializer in question.
        value - The dictionary just started.
      • readKey

        public void readKey​(JSONSerializer jsonSerializer,
                            java.lang.String key)
        Deprecated.
        Description copied from interface: JSONSerializerListener
        Called when the serializer has read a dictionary key.
        Specified by:
        readKey in interface JSONSerializerListener
        Parameters:
        jsonSerializer - The active serializer.
        key - The key just read.
      • readString

        public void readString​(JSONSerializer jsonSerializer,
                               java.lang.String value)
        Deprecated.
        Description copied from interface: JSONSerializerListener
        Called when the serializer has read a string value.
        Specified by:
        readString in interface JSONSerializerListener
        Parameters:
        jsonSerializer - The active serializer.
        value - The string value just read.
      • readNumber

        public void readNumber​(JSONSerializer jsonSerializer,
                               java.lang.Number value)
        Deprecated.
        Description copied from interface: JSONSerializerListener
        Called when the serializer has read a numeric value.
        Specified by:
        readNumber in interface JSONSerializerListener
        Parameters:
        jsonSerializer - The active serializer.
        value - The numeric value just read.
      • readBoolean

        public void readBoolean​(JSONSerializer jsonSerializer,
                                java.lang.Boolean value)
        Deprecated.
        Description copied from interface: JSONSerializerListener
        Called when the serializer has read a boolean value.
        Specified by:
        readBoolean in interface JSONSerializerListener
        Parameters:
        jsonSerializer - The serializer.
        value - The boolean value just read.