Package org.apache.groovy.json.internal
Class JsonParserCharArray
java.lang.Object
org.apache.groovy.json.internal.BaseJsonParser
org.apache.groovy.json.internal.JsonParserCharArray
- All Implemented Interfaces:
JsonParser
- Direct Known Subclasses:
JsonFastParser
,JsonParserLax
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 Summary
FieldsModifier and TypeFieldDescriptionprotected char
protected int
protected char[]
protected static char[]
protected static char[]
protected static char[]
Fields inherited from class org.apache.groovy.json.internal.BaseJsonParser
ALPHA_0, ALPHA_1, ALPHA_2, ALPHA_3, ALPHA_4, ALPHA_5, ALPHA_6, ALPHA_7, ALPHA_8, ALPHA_9, bufSize, charset, CLOSED_BRACKET, CLOSED_CURLY, COLON, COMMA, DECIMAL_POINT, DOUBLE_QUOTE, ESCAPE, internedKeysCache, internKeys, LETTER_BIG_E, LETTER_E, MINUS, PLUS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected char
protected boolean
protected Object
decodeFromChars(char[] cs)
protected List
protected Object
protected Object
protected boolean
protected Object
protected String
exceptionDetails(String message)
protected boolean
protected boolean
hasMore()
protected char
nextChar()
parse(char[] chars)
protected void
Methods inherited from class org.apache.groovy.json.internal.BaseJsonParser
charDescription, findEndQuote, hasEscapeChar, isDecimalChar, isDelimiter, isDoubleQuote, isEscape, isNumberDigit, parse, parse, parse, parse, parse, parse, parse, parse, setCharset
-
Field Details
-
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 Details
-
JsonParserCharArray
public JsonParserCharArray()
-
-
Method Details
-
decodeFromChars
-
hasMore
protected final boolean hasMore() -
hasCurrent
protected final boolean hasCurrent() -
skipWhiteSpace
protected final void skipWhiteSpace() -
nextChar
protected final char nextChar() -
exceptionDetails
-
decodeJsonObject
-
complain
-
decodeValue
-
decodeNull
-
decodeTrue
protected final boolean decodeTrue() -
decodeFalse
protected final boolean decodeFalse() -
decodeJsonArray
-
currentChar
protected final char currentChar() -
parse
-