JSONParserMemory
, JSONParserStream
abstract class JSONParserBase extends Object
JSONParserString
and
JSONParserReader
JSONParserMemory
,
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
ParseException
public void checkLeadinZero() throws ParseException
ParseException
protected Number extractFloat() throws ParseException
ParseException
protected Object parse(ContainerFactory containerFactory, ContentHandler handler) throws ParseException
ParseException
protected Number parseNumber(String s) throws ParseException
ParseException
protected abstract void read() throws IOException
IOException
protected List<Object> readArray() throws ParseException, IOException
ParseException
IOException
protected Object readMain(boolean[] stop) throws ParseException, IOException
ParseException
IOException
protected abstract void readNoEnd() throws ParseException, IOException
ParseException
IOException
protected abstract void readNQString(boolean[] stop) throws IOException
IOException
protected abstract Object readNumber(boolean[] stop) throws ParseException, IOException
ParseException
IOException
protected Map<String,Object> readObject() throws ParseException, IOException
ParseException
IOException
abstract void readS() throws IOException
IOException
protected abstract void readString() throws ParseException, IOException
ParseException
IOException
protected void readString2() throws ParseException, IOException
ParseException
IOException
protected char readUnicode(int totalChars) throws ParseException, IOException
ParseException
IOException
protected void skipDigits() throws IOException
IOException
protected void skipNQString(boolean[] stop) throws IOException
IOException
protected void skipSpace() throws IOException
IOException