Class Json.DefaultHandler

    • Constructor Detail

      • DefaultHandler

        public DefaultHandler()
    • Method Detail

      • startArray

        public JsonArray startArray()
        Description copied from class: JsonHandler
        Indicates the beginning of an array in the JSON input. This method will be called when reading the opening square bracket character ('[').

        This method may return an object to handle subsequent parser events for this array. This array handler will then be provided in all calls to startArrayValue(), endArrayValue(), and endArray() for this array.

        Overrides:
        startArray in class JsonHandler<JsonArray,​JsonObject>
        Returns:
        a handler for this array, or null if not needed
      • endNull

        public void endNull()
        Description copied from class: JsonHandler
        Indicates the end of a null literal in the JSON input. This method will be called after reading the last character of the literal.
        Overrides:
        endNull in class JsonHandler<JsonArray,​JsonObject>
      • endBoolean

        public void endBoolean​(boolean bool)
        Description copied from class: JsonHandler
        Indicates the end of a boolean literal (true or false) in the JSON input. This method will be called after reading the last character of the literal.
        Overrides:
        endBoolean in class JsonHandler<JsonArray,​JsonObject>
        Parameters:
        bool - the parsed boolean value
      • endString

        public void endString​(String string)
        Description copied from class: JsonHandler
        Indicates the end of a string in the JSON input. This method will be called after reading the closing double quote character ('"').
        Overrides:
        endString in class JsonHandler<JsonArray,​JsonObject>
        Parameters:
        string - the parsed string
      • endNumber

        public void endNumber​(String string)
        Description copied from class: JsonHandler
        Indicates the end of a number in the JSON input. This method will be called after reading the last character of the number.
        Overrides:
        endNumber in class JsonHandler<JsonArray,​JsonObject>
        Parameters:
        string - the parsed number string