Package net.minidev.json.parser
Class JSONParserByteArray
java.lang.Object
net.minidev.json.parser.JSONParserBase
net.minidev.json.parser.JSONParserMemory
net.minidev.json.parser.JSONParserByteArray
Parser for JSON text. Please note that JSONParser is NOT thread-safe.
-
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.JSONParserMemory
lenFields 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidextractString(int beginIndex, int endIndex) protected voidextractStringTrim(int start, int stop) protected intindexOf(char c, int pos) parse(byte[] in) use to return Primitive Type, or String, Or JsonObject or JsonArray generated by a ContainerFactory<T> Tparse(byte[] in, JsonReaderI<T> mapper) use to return Primitive Type, or String, Or JsonObject or JsonArray generated by a ContainerFactoryprotected voidread()protected voidread data can not be EOIprotected voidreadS()Same as read() in memory parsingMethods inherited from class net.minidev.json.parser.JSONParserMemory
readNQString, readNumber, readStringMethods inherited from class net.minidev.json.parser.JSONParserBase
checkControleChar, checkLeadinZero, extractFloat, parse, parseNumber, readArray, readFirst, readMain, readObject, readString2, readUnicode, skipDigits, skipNQString, skipSpace
-
Field Details
-
in
private byte[] in
-
-
Constructor Details
-
JSONParserByteArray
public JSONParserByteArray(int permissiveMode)
-
-
Method Details
-
parse
use to return Primitive Type, or String, Or JsonObject or JsonArray generated by a ContainerFactory- Throws:
ParseException
-
parse
use to return Primitive Type, or String, Or JsonObject or JsonArray generated by a ContainerFactory- Throws:
ParseException
-
extractString
protected void extractString(int beginIndex, int endIndex) - Specified by:
extractStringin classJSONParserMemory
-
extractStringTrim
protected void extractStringTrim(int start, int stop) - Specified by:
extractStringTrimin classJSONParserMemory
-
indexOf
protected int indexOf(char c, int pos) - Specified by:
indexOfin classJSONParserMemory
-
read
protected void read()- Specified by:
readin classJSONParserBase
-
readS
protected void readS()Same as read() in memory parsing- Specified by:
readSin classJSONParserBase
-
readNoEnd
read data can not be EOI- Specified by:
readNoEndin classJSONParserBase- Throws:
ParseException
-