public abstract class JsonBaseByteArrayParser extends BaseJsonParser
Modifier and Type | Field and Description |
---|---|
protected int |
__currentChar |
protected int |
__index |
protected static int |
BELL |
protected CharBuf |
builder |
protected byte[] |
charArray |
protected static int |
COLON |
protected static byte[] |
FALSE |
protected static int |
FORM_FEED |
protected int |
lastIndex |
protected static int |
LETTER_A |
protected static int |
LETTER_F |
protected static int |
LETTER_L |
protected static int |
LETTER_N |
protected static int |
LETTER_R |
protected static int |
LETTER_S |
protected static int |
LETTER_T |
protected static int |
LETTER_U |
protected static int |
NEW_LINE |
protected static byte[] |
NULL |
protected static int |
OPEN_BRACKET |
protected static int |
OPEN_CURLY |
protected static int |
RETURN |
protected static int |
SPACE |
protected static int |
TAB |
protected static byte[] |
TRUE |
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, COMMA, copyBuf, DECIMAL_POINT, DOUBLE_QUOTE, ESCAPE, internedKeysCache, internKeys, LETTER_BIG_E, LETTER_E, MINUS, PLUS
Constructor and Description |
---|
JsonBaseByteArrayParser() |
Modifier and Type | Method and Description |
---|---|
protected void |
complain(String complaint) |
protected boolean |
decodeFalse() |
protected List |
decodeJsonArray() |
protected List |
decodeJsonArrayOLD() |
protected Object |
decodeJsonObject() |
protected Object |
decodeNull() |
protected abstract String |
decodeString() |
protected boolean |
decodeTrue() |
protected Object |
decodeValue() |
protected String |
exceptionDetails(String message) |
protected boolean |
hasCurrent() |
protected boolean |
hasMore() |
protected int |
nextChar() |
Object |
parse(byte[] bytes) |
Object |
parse(byte[] bytes,
Charset charset) |
Object |
parse(char[] chars) |
<T> T |
parse(Class<T> type,
byte[] bytes) |
<T> T |
parse(Class<T> type,
byte[] bytes,
Charset charset) |
<T> T |
parse(Class<T> type,
char[] chars) |
<T> T |
parse(Class<T> type,
CharSequence charSequence) |
<T> T |
parse(Class<T> type,
InputStream input) |
<T> T |
parse(Class<T> type,
String str) |
Object |
parse(String string) |
<T> T |
parseAsStream(Class<T> type,
byte[] value) |
<T> T |
parseDirect(Class<T> type,
byte[] value) |
<T> T |
parseFile(Class<T> type,
String fileName) |
protected void |
skipWhiteSpace() |
protected void |
skipWhiteSpaceIfNeeded() |
charDescription, parse, parse, parse, parse, setCharset
protected byte[] charArray
protected int __index
protected int __currentChar
protected static final int NEW_LINE
protected static final int RETURN
protected static final int SPACE
protected static final int TAB
protected static final int BELL
protected static final int FORM_FEED
protected static final int COLON
protected static final int OPEN_CURLY
protected static final int OPEN_BRACKET
protected static final int LETTER_N
protected static final int LETTER_U
protected static final int LETTER_L
protected static final int LETTER_T
protected static final int LETTER_R
protected static final int LETTER_F
protected static final int LETTER_A
protected static final int LETTER_S
protected final CharBuf builder
protected int lastIndex
protected static final byte[] NULL
protected static final byte[] TRUE
protected static final byte[] FALSE
protected final boolean hasMore()
protected final boolean hasCurrent()
protected final void skipWhiteSpaceIfNeeded()
protected final int nextChar()
protected final void skipWhiteSpace()
public <T> T parse(Class<T> type, byte[] bytes)
public Object parse(byte[] bytes)
parse
in interface JsonParser
parse
in class BaseJsonParser
public <T> T parse(Class<T> type, InputStream input)
public <T> T parse(Class<T> type, CharSequence charSequence)
public <T> T parse(Class<T> type, char[] chars)
protected void complain(String complaint)
protected final Object decodeJsonObject()
protected final Object decodeValue()
protected final Object decodeNull()
protected final boolean decodeTrue()
protected final boolean decodeFalse()
protected abstract String decodeString()
protected final List decodeJsonArray()
protected final List decodeJsonArrayOLD()
public <T> T parseDirect(Class<T> type, byte[] value)
public <T> T parseAsStream(Class<T> type, byte[] value)
public Object parse(char[] chars)
public Object parse(String string)
parse
in interface JsonParser
parse
in class BaseJsonParser
Copyright © 2014. All rights reserved.