Interface JsonHandler


  • public interface JsonHandler
    The JSONHandler interface receives notifications from the JsonParser.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void array()
      Receive notification about the start of an JSON array.
      void endArray()
      Receive notification about the end of an JSON array.
      void endObject()
      Receive notification about the end of an JSON object.
      void key​(String key)
      Receive notification about the given JSON key.
      void object()
      Receive notification about the start of an JSON object.
      void value​(boolean value)
      Receive notification about the given JSON boolean value.
      void value​(double value)
      Receive notification about the given JSON number value (double).
      void value​(long value)
      Receive notification about the given JSON number value (long).
      void value​(String value)
      Receive notification about the given JSON String value.
    • Method Detail

      • object

        void object()
             throws IOException
        Receive notification about the start of an JSON object.
        Throws:
        IOException - If an error occurs.
      • endObject

        void endObject()
                throws IOException
        Receive notification about the end of an JSON object.
        Throws:
        IOException - If an error occurs.
      • array

        void array()
            throws IOException
        Receive notification about the start of an JSON array.
        Throws:
        IOException - If an error occurs.
      • endArray

        void endArray()
               throws IOException
        Receive notification about the end of an JSON array.
        Throws:
        IOException - If an error occurs.
      • key

        void key​(String key)
          throws IOException
        Receive notification about the given JSON key.
        Parameters:
        key - The key.
        Throws:
        IOException - If an error occurs.
      • value

        void value​(String value)
            throws IOException
        Receive notification about the given JSON String value.
        Parameters:
        value - The value.
        Throws:
        IOException - If an error occurs.
      • value

        void value​(boolean value)
            throws IOException
        Receive notification about the given JSON boolean value.
        Parameters:
        value - The value.
        Throws:
        IOException - If an error occurs.
      • value

        void value​(long value)
            throws IOException
        Receive notification about the given JSON number value (long).
        Parameters:
        value - The value.
        Throws:
        IOException - If an error occurs.
      • value

        void value​(double value)
            throws IOException
        Receive notification about the given JSON number value (double).
        Parameters:
        value - The value.
        Throws:
        IOException - If an error occurs.