public abstract class BaseJsonParser extends Object implements JsonParser
Modifier and Type | Field and Description |
---|---|
protected static int |
ALPHA_0 |
protected static int |
ALPHA_1 |
protected static int |
ALPHA_2 |
protected static int |
ALPHA_3 |
protected static int |
ALPHA_4 |
protected static int |
ALPHA_5 |
protected static int |
ALPHA_6 |
protected static int |
ALPHA_7 |
protected static int |
ALPHA_8 |
protected static int |
ALPHA_9 |
protected int |
bufSize |
protected String |
charset |
protected static int |
CLOSED_BRACKET |
protected static int |
CLOSED_CURLY |
protected static int |
COLON |
protected static int |
COMMA |
protected static int |
DECIMAL_POINT |
protected static int |
DOUBLE_QUOTE |
protected static int |
ESCAPE |
protected static ConcurrentHashMap<String,String> |
internedKeysCache |
protected static boolean |
internKeys |
protected static int |
LETTER_BIG_E |
protected static int |
LETTER_E |
protected static int |
MINUS |
protected static int |
PLUS |
Constructor and Description |
---|
BaseJsonParser() |
Modifier and Type | Method and Description |
---|---|
protected 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 boolean |
isDoubleQuote(int c) |
protected static boolean |
isEscape(int c) |
protected static boolean |
isNumberDigit(int c) |
Object |
parse(byte[] bytes) |
Object |
parse(byte[] bytes,
String charset) |
Object |
parse(CharSequence charSequence) |
Object |
parse(File file,
String charset) |
Object |
parse(InputStream input) |
Object |
parse(InputStream input,
String charset) |
Object |
parse(Reader reader) |
Object |
parse(String jsonString) |
void |
setCharset(String charset) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
parse
protected static final int COLON
protected static final int COMMA
protected static final int CLOSED_CURLY
protected static final int CLOSED_BRACKET
protected static final int LETTER_E
protected static final int LETTER_BIG_E
protected static final int MINUS
protected static final int PLUS
protected static final int DECIMAL_POINT
protected static final int ALPHA_0
protected static final int ALPHA_1
protected static final int ALPHA_2
protected static final int ALPHA_3
protected static final int ALPHA_4
protected static final int ALPHA_5
protected static final int ALPHA_6
protected static final int ALPHA_7
protected static final int ALPHA_8
protected static final int ALPHA_9
protected static final int DOUBLE_QUOTE
protected static final int ESCAPE
protected static final boolean internKeys
protected static ConcurrentHashMap<String,String> internedKeysCache
protected String charset
protected int bufSize
protected String charDescription(int c)
public void setCharset(String charset)
public Object parse(String jsonString)
parse
in interface JsonParser
public Object parse(byte[] bytes)
parse
in interface JsonParser
public Object parse(byte[] bytes, String charset)
parse
in interface JsonParser
public Object parse(CharSequence charSequence)
parse
in interface JsonParser
public Object parse(Reader reader)
parse
in interface JsonParser
public Object parse(InputStream input)
parse
in interface JsonParser
public Object parse(InputStream input, String charset)
parse
in interface JsonParser
public Object parse(File file, String charset)
parse
in interface JsonParser
protected static boolean isDecimalChar(int currentChar)
protected static boolean isDelimiter(int c)
protected static final boolean isNumberDigit(int c)
protected static final boolean isDoubleQuote(int c)
protected static final boolean isEscape(int c)
protected static boolean hasEscapeChar(char[] array, int index, int[] indexHolder)
protected static int findEndQuote(char[] array, int index)