Package net.minidev.json.parser
Class JSONParserMemory
- java.lang.Object
-
- net.minidev.json.parser.JSONParserBase
-
- net.minidev.json.parser.JSONParserMemory
-
- Direct Known Subclasses:
JSONParserByteArray
,JSONParserString
abstract class JSONParserMemory extends JSONParserBase
Parser for JSON text. Please note that JSONParser is NOT thread-safe.- See Also:
JSONParserString
,JSONParserByteArray
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minidev.json.parser.JSONParserBase
JSONParserBase.MSB
-
-
Field Summary
Fields Modifier and Type Field Description protected int
len
-
Fields inherited from class net.minidev.json.parser.JSONParserBase
acceptLeadinZero, acceptNaN, acceptNonQuote, acceptSimpleQuote, acceptUselessComma, base, c, checkTaillingData, checkTaillingSpace, EOI, ignoreControlChar, MAX_STOP, pos, sb, stopAll, stopArray, stopKey, stopValue, stopX, useHiPrecisionFloat, useIntegerStorage, xo, xs
-
-
Constructor Summary
Constructors Constructor Description JSONParserMemory(int permissiveMode)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
extractString(int start, int stop)
protected abstract void
extractStringTrim(int start, int stop)
protected abstract int
indexOf(char c, int pos)
protected void
readNQString(boolean[] stop)
protected java.lang.Object
readNumber(boolean[] stop)
protected void
readString()
-
Methods inherited from class net.minidev.json.parser.JSONParserBase
checkControleChar, checkLeadinZero, extractFloat, parse, parseNumber, read, readArray, readFirst, readMain, readNoEnd, readObject, readS, readString2, readUnicode, skipDigits, skipNQString, skipSpace
-
-
-
-
Method Detail
-
readNQString
protected void readNQString(boolean[] stop) throws java.io.IOException
- Specified by:
readNQString
in classJSONParserBase
- Throws:
java.io.IOException
-
readNumber
protected java.lang.Object readNumber(boolean[] stop) throws ParseException, java.io.IOException
- Specified by:
readNumber
in classJSONParserBase
- Throws:
ParseException
java.io.IOException
-
readString
protected void readString() throws ParseException, java.io.IOException
- Specified by:
readString
in classJSONParserBase
- Throws:
ParseException
java.io.IOException
-
extractString
protected abstract void extractString(int start, int stop)
-
indexOf
protected abstract int indexOf(char c, int pos)
-
extractStringTrim
protected abstract void extractStringTrim(int start, int stop)
-
-