Class JSONParserBase

    • Field Detail

      • c

        protected char c
      • lastKey

        private java.lang.String lastKey
      • stopAll

        protected static boolean[] stopAll
      • stopArray

        protected static boolean[] stopArray
      • stopKey

        protected static boolean[] stopKey
      • stopValue

        protected static boolean[] stopValue
      • stopX

        protected static boolean[] stopX
      • xo

        protected java.lang.Object xo
      • xs

        protected java.lang.String xs
      • pos

        protected int pos
      • acceptLeadinZero

        protected final boolean acceptLeadinZero
      • acceptNaN

        protected final boolean acceptNaN
      • acceptNonQuote

        protected final boolean acceptNonQuote
      • acceptSimpleQuote

        protected final boolean acceptSimpleQuote
      • acceptUselessComma

        protected final boolean acceptUselessComma
      • checkTaillingData

        protected final boolean checkTaillingData
      • checkTaillingSpace

        protected final boolean checkTaillingSpace
      • ignoreControlChar

        protected final boolean ignoreControlChar
      • useHiPrecisionFloat

        protected final boolean useHiPrecisionFloat
      • useIntegerStorage

        protected final boolean useIntegerStorage
    • Constructor Detail

      • JSONParserBase

        public JSONParserBase​(int permissiveMode)
    • Method Detail

      • parse

        protected <T> T parse​(JsonReaderI<T> mapper)
                       throws ParseException
        use to return Primitive Type, or String, Or JsonObject or JsonArray generated by a ContainerFactory
        Throws:
        ParseException
      • read

        protected abstract void read()
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • readFirst

        protected <T> T readFirst​(JsonReaderI<T> mapper)
                           throws ParseException,
                                  java.io.IOException
        use to return Primitive Type, or String, Or JsonObject or JsonArray generated by a ContainerFactory
        Throws:
        ParseException
        java.io.IOException
      • readMain

        protected java.lang.Object readMain​(JsonReaderI<?> mapper,
                                            boolean[] stop)
                                     throws ParseException,
                                            java.io.IOException
        use to return Primitive Type, or String, Or JsonObject or JsonArray generated by a ContainerFactory
        Throws:
        ParseException
        java.io.IOException
      • readNQString

        protected abstract void readNQString​(boolean[] stop)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • readNumber

        protected abstract java.lang.Object readNumber​(boolean[] stop)
                                                throws ParseException,
                                                       java.io.IOException
        Throws:
        ParseException
        java.io.IOException
      • readS

        abstract void readS()
                     throws java.io.IOException
        store and read
        Throws:
        java.io.IOException
      • readUnicode

        protected char readUnicode​(int totalChars)
                            throws ParseException,
                                   java.io.IOException
        Throws:
        ParseException
        java.io.IOException
      • skipDigits

        protected void skipDigits()
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • skipNQString

        protected void skipNQString​(boolean[] stop)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • skipSpace

        protected void skipSpace()
                          throws java.io.IOException
        Throws:
        java.io.IOException