Package com.github.tnakamot.json.parser
Class JSONLexer
- java.lang.Object
 - 
- com.github.tnakamot.json.parser.JSONLexer
 
 
- 
- 
Constructor Summary
Constructors Constructor Description JSONLexer(JSONText source, JSONParserErrorHandlingOptions options)Create an instance of JSON lexical analyzer for the given JSON text. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JSONTokennext()Read the JSON text and return the next JSON token. 
 - 
 
- 
- 
Constructor Detail
- 
JSONLexer
public JSONLexer(JSONText source, JSONParserErrorHandlingOptions options)
Create an instance of JSON lexical analyzer for the given JSON text.- Parameters:
 source- JSON text source to tokenizeoptions- lexical analyzer options
 
 - 
 
- 
Method Detail
- 
next
public JSONToken next() throws IOException, JSONParserException
Read the JSON text and return the next JSON token.- Returns:
 - the next token, or null if reached EOF
 - Throws:
 IOException- if I/O error happensJSONParserException- if there is a syntax error in the JSON text- See Also:
 - RFC 8259 - 2. JSON Grammer
 
 
 - 
 
 -