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.InputStream
in
-
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.Object
parse(java.io.InputStream in)
use to return Primitive Type, or String, Or JsonObject or JsonArray generated by a ContainerFactory<T> T
parse(java.io.InputStream in, JsonReaderI<T> mapper)
use to return Primitive Type, or String, Or JsonObject or JsonArray generated by a ContainerFactoryprotected void
read()
protected 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, readFirst, readMain, readObject, readString2, readUnicode, skipDigits, skipNQString, skipSpace
-
-
-
-
Method Detail
-
parse
public java.lang.Object parse(java.io.InputStream in) throws ParseException
use 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 ParseException
use 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:
read
in classJSONParserBase
- Throws:
java.io.IOException
-
readS
protected void readS() throws java.io.IOException
Description copied from class:JSONParserBase
store and read- Specified by:
readS
in classJSONParserBase
- Throws:
java.io.IOException
-
readNoEnd
protected void readNoEnd() throws ParseException, java.io.IOException
- Specified by:
readNoEnd
in classJSONParserBase
- Throws:
ParseException
java.io.IOException
-
-