public class JsonLexer extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JsonLexer.Type
Token types
|
| Constructor and Description |
|---|
JsonLexer(Reader r)
Creates a new lexer
|
| Modifier and Type | Method and Description |
|---|---|
JsonLexer.Type |
readNextToken()
Reads the next token from the stream
|
Number |
readNumber()
Reads a number from the stream
|
String |
readString()
Reads a string from the stream
|
public JsonLexer(Reader r)
r - the reader that provides the JSON to scanpublic JsonLexer.Type readNextToken() throws IOException
IOException - if the stream could not be readpublic String readString() throws IOException
IOException - if the stream could not be readpublic Number readNumber() throws IOException
IOException - if the stream could not be read