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 intlen-
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 voidextractString(int start, int stop)protected abstract voidextractStringTrim(int start, int stop)protected abstract intindexOf(char c, int pos)protected voidreadNQString(boolean[] stop)protected java.lang.ObjectreadNumber(boolean[] stop)protected voidreadString()-
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:
readNQStringin classJSONParserBase- Throws:
java.io.IOException
-
readNumber
protected java.lang.Object readNumber(boolean[] stop) throws ParseException, java.io.IOException- Specified by:
readNumberin classJSONParserBase- Throws:
ParseExceptionjava.io.IOException
-
readString
protected void readString() throws ParseException, java.io.IOException- Specified by:
readStringin classJSONParserBase- Throws:
ParseExceptionjava.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)
-
-