Interface JSONEventHandler

All Superinterfaces:
Configurable
All Known Implementing Classes:
ConsoleEventHandler, EventHandler, StackEventHandler

public interface JSONEventHandler
extends Configurable
  • Method Details

    • getCharacterSet

      Charset getCharacterSet()
    • handleEvent

      void handleEvent​(JSONEvent event)
    • documentStart

      void documentStart​(JSONValueType type)
      The document start event
      Parameters:
      type - the document type, will either be JSONValueType.OBJECT or JSONValueType.ARRAY
    • documentEnd

      void documentEnd()
      The document end event
    • jsonArrayStart

      void jsonArrayStart​(String key)
      Start of new JSONArray.
      Parameters:
      key - the parent key that is associated with the array
    • jsonArrayEnd

      void jsonArrayEnd​(String key)
      End of a JSONArray
      Parameters:
      key - the parent key associated with the array
    • jsonObjectStart

      void jsonObjectStart​(String key)
      Start of a new JSONObject
      Parameters:
      key - the parent key associated with the object
    • jsonObjectEnd

      void jsonObjectEnd​(String key)
      End of a JSONObject
      Parameters:
      key - the parent key associated with this object
    • valueString

      void valueString​(String key, String value)
      String value
      Parameters:
      key - the key associated with this value
      value - the value
    • valueLong

      void valueLong​(String key, Long value)
      Long value
      Parameters:
      key - the key associated with this value
      value - the value
    • valueInt

      void valueInt​(String key, Integer value)
      Integer value
      Parameters:
      key - the key associated with this value
      value - the value
    • valueBigDecimal

      void valueBigDecimal​(String key, BigDecimal value)
      BigDecimal value
      Parameters:
      key - the key associated with this value
      value - the value
    • valueDouble

      void valueDouble​(String key, Double value)
      Double value value
      Parameters:
      key - the key associated with this value
      value - the value
    • valueFloat

      void valueFloat​(String key, Float value)
      Float value
      Parameters:
      key - the key associated with this value
      value - the value
    • valueBoolean

      void valueBoolean​(String key, boolean value)
      Boolean value
      Parameters:
      key - the key associated with this value
      value - the value
    • valueNull

      void valueNull​(String key)
      null value
      Parameters:
      key - the key associated with this value
      value - the value
    • newKey

      void newKey​(String key)