Package com.landawn.abacus.parser
Class JSONStreamReader
- java.lang.Object
-
- com.landawn.abacus.parser.JSONStringReader
-
- com.landawn.abacus.parser.JSONStreamReader
-
- All Implemented Interfaces:
JSONReader
public class JSONStreamReader extends JSONStringReader
The Class JSONStreamReader.- Since:
- 0.8
- Author:
- Haiyang Li
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.landawn.abacus.parser.JSONReader
JSONReader.SymbolReader
-
-
Field Summary
-
Fields inherited from interface com.landawn.abacus.parser.JSONReader
COLON, COMMA, END_BRACE, END_BRACKET, END_QUOTATION_D, END_QUOTATION_S, EOR, START_BRACE, START_BRACKET, START_QUOTATION_D, START_QUOTATION_S
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
nextToken()
TODO performance improvement: Refer to the test above.static JSONReader
parse(Reader reader, char[] rbuf, char[] cbuf)
-
Methods inherited from class com.landawn.abacus.parser.JSONStringReader
close, getText, hasText, parse, parse, readPropInfo, readValue
-
-
-
-
Method Detail
-
parse
public static JSONReader parse(Reader reader, char[] rbuf, char[] cbuf)
- Parameters:
reader
-rbuf
-cbuf
-- Returns:
-
nextToken
public int nextToken() throws IOException
TODO performance improvement: Refer to the test above. TODO limitation: the maximum length of property value is the buffer size.- Specified by:
nextToken
in interfaceJSONReader
- Overrides:
nextToken
in classJSONStringReader
- Returns:
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
-