| Constructor and Description |
|---|
JsonLexer(java.io.Reader reader)
Instantiates a lexer with a reader from which to read JSON tokens.
|
| Modifier and Type | Method and Description |
|---|---|
LineColumnReader |
getReader()
Underlying reader from which to read the JSON tokens.
|
boolean |
hasNext()
Iterator method to know if another token follows,
or if we've reached the end of the stream.
|
JsonToken |
next()
Iterator method to get the next token of the stream.
|
JsonToken |
nextToken() |
void |
remove()
Method not implemented.
|
int |
skipWhitespace()
Skips all the whitespace characters and moves the cursor to the next non-space character.
|
static java.lang.String |
unescape(java.lang.String input)
Replace unicode escape and other control characters with real characters
|
public JsonLexer(java.io.Reader reader)
LineColumnReader,
for line and column information, unless it's already an instance of that class.reader - underlying readerpublic LineColumnReader getReader()
LineColumnReader,
to keep track of line and column positions.public JsonToken nextToken()
public static java.lang.String unescape(java.lang.String input)
input - textpublic int skipWhitespace()
public boolean hasNext()
hasNext in interface java.util.Iterator<JsonToken>public JsonToken next()
next in interface java.util.Iterator<JsonToken>public void remove()
remove in interface java.util.Iterator<JsonToken>java.lang.UnsupportedOperationException