Class SimpleContentHandler

  • All Implemented Interfaces:
    org.json.simple.parser.ContentHandler

    public class SimpleContentHandler
    extends Object
    implements org.json.simple.parser.ContentHandler
    • Constructor Detail

      • SimpleContentHandler

        public SimpleContentHandler()
    • Method Detail

      • startJSON

        public void startJSON()
                       throws org.json.simple.parser.ParseException,
                              IOException
        Specified by:
        startJSON in interface org.json.simple.parser.ContentHandler
        Throws:
        org.json.simple.parser.ParseException
        IOException
      • endJSON

        public void endJSON()
                     throws org.json.simple.parser.ParseException,
                            IOException
        Specified by:
        endJSON in interface org.json.simple.parser.ContentHandler
        Throws:
        org.json.simple.parser.ParseException
        IOException
      • startObject

        public boolean startObject()
                            throws org.json.simple.parser.ParseException,
                                   IOException
        Specified by:
        startObject in interface org.json.simple.parser.ContentHandler
        Throws:
        org.json.simple.parser.ParseException
        IOException
      • endObject

        public boolean endObject()
                          throws org.json.simple.parser.ParseException,
                                 IOException
        Specified by:
        endObject in interface org.json.simple.parser.ContentHandler
        Throws:
        org.json.simple.parser.ParseException
        IOException
      • startObjectEntry

        public boolean startObjectEntry​(String key)
                                 throws org.json.simple.parser.ParseException,
                                        IOException
        Specified by:
        startObjectEntry in interface org.json.simple.parser.ContentHandler
        Throws:
        org.json.simple.parser.ParseException
        IOException
      • endObjectEntry

        public boolean endObjectEntry()
                               throws org.json.simple.parser.ParseException,
                                      IOException
        Specified by:
        endObjectEntry in interface org.json.simple.parser.ContentHandler
        Throws:
        org.json.simple.parser.ParseException
        IOException
      • startArray

        public boolean startArray()
                           throws org.json.simple.parser.ParseException,
                                  IOException
        Specified by:
        startArray in interface org.json.simple.parser.ContentHandler
        Throws:
        org.json.simple.parser.ParseException
        IOException
      • endArray

        public boolean endArray()
                         throws org.json.simple.parser.ParseException,
                                IOException
        Specified by:
        endArray in interface org.json.simple.parser.ContentHandler
        Throws:
        org.json.simple.parser.ParseException
        IOException
      • primitive

        public boolean primitive​(Object value)
                          throws org.json.simple.parser.ParseException,
                                 IOException
        Specified by:
        primitive in interface org.json.simple.parser.ContentHandler
        Throws:
        org.json.simple.parser.ParseException
        IOException
      • getResult

        public Object getResult()