Package org.apache.groovy.json.internal
Class BaseJsonParser
java.lang.Object
org.apache.groovy.json.internal.BaseJsonParser
- All Implemented Interfaces:
JsonParser
- Direct Known Subclasses:
JsonParserCharArray
,JsonParserUsingCharacterSource
Base JSON parser.
Scaled down version of Boon JsonParser with features
removed that are JDK 1.7 dependent or Groovy duplicated functionality.
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected int
protected String
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final ConcurrentHashMap<String,
String> protected static final boolean
protected static final int
protected static final int
protected static final int
protected static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
charDescription
(int c) protected static int
findEndQuote
(char[] array, int index) protected static boolean
hasEscapeChar
(char[] array, int index, int[] indexHolder) protected static boolean
isDecimalChar
(int currentChar) protected static boolean
isDelimiter
(int c) protected static final boolean
isDoubleQuote
(int c) protected static final boolean
isEscape
(int c) protected static final boolean
isNumberDigit
(int c) parse
(byte[] bytes) parse
(InputStream input) parse
(InputStream input, String charset) parse
(CharSequence charSequence) void
setCharset
(String charset) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface groovy.json.JsonParser
parse
-
Field Details
-
COLON
protected static final int COLON- See Also:
-
COMMA
protected static final int COMMA- See Also:
-
CLOSED_CURLY
protected static final int CLOSED_CURLY- See Also:
-
CLOSED_BRACKET
protected static final int CLOSED_BRACKET- See Also:
-
LETTER_E
protected static final int LETTER_E- See Also:
-
LETTER_BIG_E
protected static final int LETTER_BIG_E- See Also:
-
MINUS
protected static final int MINUS- See Also:
-
PLUS
protected static final int PLUS- See Also:
-
DECIMAL_POINT
protected static final int DECIMAL_POINT- See Also:
-
ALPHA_0
protected static final int ALPHA_0- See Also:
-
ALPHA_1
protected static final int ALPHA_1- See Also:
-
ALPHA_2
protected static final int ALPHA_2- See Also:
-
ALPHA_3
protected static final int ALPHA_3- See Also:
-
ALPHA_4
protected static final int ALPHA_4- See Also:
-
ALPHA_5
protected static final int ALPHA_5- See Also:
-
ALPHA_6
protected static final int ALPHA_6- See Also:
-
ALPHA_7
protected static final int ALPHA_7- See Also:
-
ALPHA_8
protected static final int ALPHA_8- See Also:
-
ALPHA_9
protected static final int ALPHA_9- See Also:
-
DOUBLE_QUOTE
protected static final int DOUBLE_QUOTE- See Also:
-
ESCAPE
protected static final int ESCAPE- See Also:
-
internKeys
protected static final boolean internKeys -
internedKeysCache
-
charset
-
bufSize
protected int bufSize
-
-
Constructor Details
-
BaseJsonParser
public BaseJsonParser()
-
-
Method Details
-
charDescription
-
setCharset
-
parse
- Specified by:
parse
in interfaceJsonParser
-
parse
- Specified by:
parse
in interfaceJsonParser
-
parse
- Specified by:
parse
in interfaceJsonParser
-
parse
- Specified by:
parse
in interfaceJsonParser
-
parse
- Specified by:
parse
in interfaceJsonParser
-
parse
- Specified by:
parse
in interfaceJsonParser
-
parse
- Specified by:
parse
in interfaceJsonParser
-
parse
- Specified by:
parse
in interfaceJsonParser
-
isDecimalChar
protected static boolean isDecimalChar(int currentChar) -
isDelimiter
protected static boolean isDelimiter(int c) -
isNumberDigit
protected static final boolean isNumberDigit(int c) -
isDoubleQuote
protected static final boolean isDoubleQuote(int c) -
isEscape
protected static final boolean isEscape(int c) -
hasEscapeChar
protected static boolean hasEscapeChar(char[] array, int index, int[] indexHolder) -
findEndQuote
protected static int findEndQuote(char[] array, int index)
-