Package net.minidev.json.parser
Class JSONParserReader
- java.lang.Object
-
- net.minidev.json.parser.JSONParserBase
-
- net.minidev.json.parser.JSONParserStream
-
- net.minidev.json.parser.JSONParserReader
-
- Direct Known Subclasses:
JSONParserInputStream
class JSONParserReader extends JSONParserStream
Parser for JSON text. Please note that JSONParser is NOT thread-safe.- Author:
- Uriel Chemouni uchemouni@gmail.com
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minidev.json.parser.JSONParserBase
JSONParserBase.MSB
-
-
Field Summary
-
Fields inherited from class net.minidev.json.parser.JSONParserBase
acceptLeadinZero, acceptNaN, acceptNonQuote, acceptSimpleQuote, acceptUselessComma, c, checkTaillingData, checkTaillingSpace, containerFactory, EOI, handler, ignoreControlChar, MAX_STOP, pos, sb, stopAll, stopArray, stopKey, stopValue, stopX, useHiPrecisionFloat, useIntegerStorage, xo, xs
-
-
Constructor Summary
Constructors Constructor Description JSONParserReader(int permissiveMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
parse(Reader in)
use to return Primitive Type, or String, Or JsonObject or JsonArray generated by a ContainerFactoryObject
parse(Reader in, ContainerFactory containerFactory)
use to return Primitive Type, or String, Or JsonObject or JsonArray generated by a ContainerFactoryObject
parse(Reader in, ContainerFactory containerFactory, ContentHandler handler)
use to return Primitive Type, or String, Or JsonObject or JsonArray generated by a ContainerFactoryprotected void
read()
Read one char in this.cprotected void
readNoEnd()
protected void
readS()
store and read-
Methods inherited from class net.minidev.json.parser.JSONParserStream
readNQString, readNumber, readString
-
Methods inherited from class net.minidev.json.parser.JSONParserBase
checkControleChar, checkLeadinZero, extractFloat, parse, parseNumber, readArray, readMain, readObject, readString2, readUnicode, skipDigits, skipNQString, skipSpace
-
-
-
-
Method Detail
-
parse
public Object parse(Reader in) throws ParseException
use to return Primitive Type, or String, Or JsonObject or JsonArray generated by a ContainerFactory- Throws:
ParseException
-
parse
public Object parse(Reader in, ContainerFactory containerFactory) throws ParseException
use to return Primitive Type, or String, Or JsonObject or JsonArray generated by a ContainerFactory- Throws:
ParseException
-
parse
public Object parse(Reader in, ContainerFactory containerFactory, ContentHandler handler) throws ParseException
use to return Primitive Type, or String, Or JsonObject or JsonArray generated by a ContainerFactory- Throws:
ParseException
-
read
protected void read() throws IOException
Description copied from class:JSONParserBase
Read one char in this.c- Specified by:
read
in classJSONParserBase
- Throws:
IOException
-
readS
protected void readS() throws IOException
Description copied from class:JSONParserBase
store and read- Specified by:
readS
in classJSONParserBase
- Throws:
IOException
-
readNoEnd
protected void readNoEnd() throws ParseException, IOException
- Specified by:
readNoEnd
in classJSONParserBase
- Throws:
ParseException
IOException
-
-