Package net.minidev.json.parser
Class JSONParserInputStream
- java.lang.Object
-
- net.minidev.json.parser.JSONParserBase
-
- net.minidev.json.parser.JSONParserStream
-
- net.minidev.json.parser.JSONParserInputStream
-
class JSONParserInputStream extends JSONParserStream
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
Fields Modifier and Type Field Description private java.io.InputStreamin-
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 JSONParserInputStream(int permissiveMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectparse(java.io.InputStream in)use to return Primitive Type, or String, Or JsonObject or JsonArray generated by a ContainerFactory<T> Tparse(java.io.InputStream in, JsonReaderI<T> mapper)use to return Primitive Type, or String, Or JsonObject or JsonArray generated by a ContainerFactoryprotected voidread()protected voidreadNoEnd()protected voidreadS()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, readFirst, readMain, readObject, readString2, readUnicode, skipDigits, skipNQString, skipSpace
-
-
-
-
Method Detail
-
parse
public java.lang.Object parse(java.io.InputStream in) throws ParseExceptionuse to return Primitive Type, or String, Or JsonObject or JsonArray generated by a ContainerFactory- Throws:
ParseException
-
parse
public <T> T parse(java.io.InputStream in, JsonReaderI<T> mapper) throws ParseExceptionuse to return Primitive Type, or String, Or JsonObject or JsonArray generated by a ContainerFactory- Throws:
ParseException
-
read
protected void read() throws java.io.IOException- Specified by:
readin classJSONParserBase- Throws:
java.io.IOException
-
readS
protected void readS() throws java.io.IOExceptionDescription copied from class:JSONParserBasestore and read- Specified by:
readSin classJSONParserBase- Throws:
java.io.IOException
-
readNoEnd
protected void readNoEnd() throws ParseException, java.io.IOException- Specified by:
readNoEndin classJSONParserBase- Throws:
ParseExceptionjava.io.IOException
-
-