Class JsonDefaultHandler

    • Constructor Detail

      • JsonDefaultHandler

        public JsonDefaultHandler()
        Constructs new JsonHandler.
    • Method Detail

      • characters

        public void characters​(char[] characters)
        Characters set found, it can be any characters.
        Specified by:
        characters in interface JsonHandler
        Parameters:
        characters - the array of characters.
      • endArray

        public void endArray()
        This method will be called by JSONParser when ']' found.
        Specified by:
        endArray in interface JsonHandler
      • endObject

        public void endObject()
        This method will be called by JSONParser when '}' found.
        Specified by:
        endObject in interface JsonHandler
      • key

        public void key​(String key)
        The key name found in the input JSON stream.
        Specified by:
        key in interface JsonHandler
        Parameters:
        key - the key.
      • startArray

        public void startArray()
        This method will be called by JSONParser when '[' found.
        Specified by:
        startArray in interface JsonHandler
      • startObject

        public void startObject()
        This method will be called by JSONParser when '{' found.
        Specified by:
        startObject in interface JsonHandler
      • reset

        public void reset()
        Reset JSON events handler and prepare it for next usage.