Class JsonParserCharArray

  • All Implemented Interfaces:
    JsonParser
    Direct Known Subclasses:
    JsonFastParser, JsonParserLax

    public class JsonParserCharArray
    extends BaseJsonParser
    Converts an input JSON String into Java objects works with String or char array as input. Produces an Object which can be any of the basic JSON types mapped to Java.
    • Field Detail

      • charArray

        protected char[] charArray
      • __index

        protected int __index
      • __currentChar

        protected char __currentChar
      • NULL

        protected static final char[] NULL
      • TRUE

        protected static final char[] TRUE
      • FALSE

        protected static char[] FALSE
    • Constructor Detail

      • JsonParserCharArray

        public JsonParserCharArray()
    • Method Detail

      • decodeFromChars

        protected java.lang.Object decodeFromChars​(char[] cs)
      • hasMore

        protected final boolean hasMore()
      • hasCurrent

        protected final boolean hasCurrent()
      • skipWhiteSpace

        protected final void skipWhiteSpace()
      • nextChar

        protected final char nextChar()
      • exceptionDetails

        protected java.lang.String exceptionDetails​(java.lang.String message)
      • decodeJsonObject

        protected final java.lang.Object decodeJsonObject()
      • complain

        protected final void complain​(java.lang.String complaint)
      • decodeValue

        protected java.lang.Object decodeValue()
      • decodeNull

        protected final java.lang.Object decodeNull()
      • decodeTrue

        protected final boolean decodeTrue()
      • decodeFalse

        protected final boolean decodeFalse()
      • decodeJsonArray

        protected final java.util.List decodeJsonArray()
      • currentChar

        protected final char currentChar()
      • parse

        public java.lang.Object parse​(char[] chars)