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
Parser for JSON text. Please note that JSONParser is NOT thread-safe.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minidev.json.parser.JSONParserBase
JSONParserBase.MSB -
Field Summary
FieldsFields inherited from class net.minidev.json.parser.JSONParserBase
acceptIncomplete, acceptLeadinZero, acceptNaN, acceptNonQuote, acceptSimpleQuote, acceptUselessComma, base, c, checkTaillingData, checkTaillingSpace, depth, EOI, ignoreControlChar, limitJsonDepth, MAX_DEPTH, MAX_STOP, pos, reject127, sb, stopAll, stopArray, stopKey, stopValue, stopX, unrestictBigDigit, useHiPrecisionFloat, useIntegerStorage, xo, xs -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 ObjectreadNumber(boolean[] stop) this function must be sync with JSONParserStream.readNumberprotected voidMethods inherited from class net.minidev.json.parser.JSONParserBase
checkControleChar, checkLeadinZero, extractFloat, hasNext, parse, parseNext, parseNumber, read, readArray, readFirst, readMain, readNoEnd, readObject, readS, readString2, readUnicode, skipDigits, skipNQString, skipSpace
-
Field Details
-
len
protected int len
-
-
Constructor Details
-
JSONParserMemory
public JSONParserMemory(int permissiveMode)
-
-
Method Details
-
readNQString
- Specified by:
readNQStringin classJSONParserBase- Throws:
IOException
-
readNumber
this function must be sync with JSONParserStream.readNumber- Specified by:
readNumberin classJSONParserBase- Throws:
ParseExceptionIOException
-
readString
- Specified by:
readStringin classJSONParserBase- Throws:
ParseExceptionIOException
-
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)
-