JSONParserMemory, JSONParserStreamabstract class JSONParserBase extends Object
JSONParserString and
JSONParserReaderJSONParserMemory,
JSONParserStream| Modifier and Type | Class | Description |
|---|---|---|
static class |
JSONParserBase.MSB |
| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
acceptLeadinZero |
|
protected boolean |
acceptNaN |
|
protected boolean |
acceptNonQuote |
|
protected boolean |
acceptSimpleQuote |
|
protected boolean |
acceptUselessComma |
|
protected char |
c |
|
protected boolean |
checkTaillingData |
|
protected boolean |
checkTaillingSpace |
|
protected ContainerFactory |
containerFactory |
|
static byte |
EOI |
|
protected ContentHandler |
handler |
|
protected boolean |
ignoreControlChar |
|
protected static char |
MAX_STOP |
|
protected int |
pos |
|
protected JSONParserBase.MSB |
sb |
|
protected static boolean[] |
stopAll |
|
protected static boolean[] |
stopArray |
|
protected static boolean[] |
stopKey |
|
protected static boolean[] |
stopValue |
|
protected static boolean[] |
stopX |
|
protected boolean |
useHiPrecisionFloat |
|
protected boolean |
useIntegerStorage |
|
protected Object |
xo |
|
protected String |
xs |
| Constructor | Description |
|---|---|
JSONParserBase(int permissiveMode) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
checkControleChar() |
|
void |
checkLeadinZero() |
|
protected Number |
extractFloat() |
|
protected Object |
parse(ContainerFactory containerFactory,
ContentHandler handler) |
use to return Primitive Type, or String, Or JsonObject or JsonArray
generated by a ContainerFactory
|
protected Number |
parseNumber(String s) |
|
protected abstract void |
read() |
Read one char in this.c
|
protected List<Object> |
readArray() |
|
protected Object |
readMain(boolean[] stop) |
use to return Primitive Type, or String, Or JsonObject or JsonArray
generated by a ContainerFactory
|
protected abstract void |
readNoEnd() |
|
protected abstract void |
readNQString(boolean[] stop) |
|
protected abstract Object |
readNumber(boolean[] stop) |
|
protected Map<String,Object> |
readObject() |
|
(package private) abstract void |
readS() |
store and read
|
protected abstract void |
readString() |
|
protected void |
readString2() |
|
protected char |
readUnicode(int totalChars) |
|
protected void |
skipDigits() |
|
protected void |
skipNQString(boolean[] stop) |
|
protected void |
skipSpace() |
protected char c
public static final byte EOI
protected static final char MAX_STOP
protected static boolean[] stopAll
protected static boolean[] stopArray
protected static boolean[] stopKey
protected static boolean[] stopValue
protected static boolean[] stopX
protected ContainerFactory containerFactory
protected ContentHandler handler
protected final JSONParserBase.MSB sb
protected Object xo
protected String xs
protected int pos
protected final boolean acceptLeadinZero
protected final boolean acceptNaN
protected final boolean acceptNonQuote
protected final boolean acceptSimpleQuote
protected final boolean acceptUselessComma
protected final boolean checkTaillingData
protected final boolean checkTaillingSpace
protected final boolean ignoreControlChar
protected final boolean useHiPrecisionFloat
protected final boolean useIntegerStorage
public void checkControleChar()
throws ParseException
ParseExceptionpublic void checkLeadinZero()
throws ParseException
ParseExceptionprotected Number extractFloat() throws ParseException
ParseExceptionprotected Object parse(ContainerFactory containerFactory, ContentHandler handler) throws ParseException
ParseExceptionprotected Number parseNumber(String s) throws ParseException
ParseExceptionprotected abstract void read()
throws IOException
IOExceptionprotected List<Object> readArray() throws ParseException, IOException
ParseExceptionIOExceptionprotected Object readMain(boolean[] stop) throws ParseException, IOException
ParseExceptionIOExceptionprotected abstract void readNoEnd()
throws ParseException,
IOException
ParseExceptionIOExceptionprotected abstract void readNQString(boolean[] stop)
throws IOException
IOExceptionprotected abstract Object readNumber(boolean[] stop) throws ParseException, IOException
ParseExceptionIOExceptionprotected Map<String,Object> readObject() throws ParseException, IOException
ParseExceptionIOExceptionabstract void readS()
throws IOException
IOExceptionprotected abstract void readString()
throws ParseException,
IOException
ParseExceptionIOExceptionprotected void readString2()
throws ParseException,
IOException
ParseExceptionIOExceptionprotected char readUnicode(int totalChars)
throws ParseException,
IOException
ParseExceptionIOExceptionprotected void skipDigits()
throws IOException
IOExceptionprotected void skipNQString(boolean[] stop)
throws IOException
IOExceptionprotected void skipSpace()
throws IOException
IOException