public final class JsonScanner
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
JsonStreamSourceImpl.Scanner.Symbol |
Constructor and Description |
---|
JsonScanner(java.io.InputStream in)
Creates a new scanner.
|
JsonScanner(java.io.Reader in)
Creates a new scanner
There is also a java.io.InputStream version of this constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
getCharOffset() |
int |
getColumnNumber() |
int |
getLineNumber() |
java.lang.String |
getText() |
JsonStreamSourceImpl.Scanner.Symbol |
nextSymbol() |
public JsonScanner(java.io.Reader in)
in
- the java.io.Reader to read input from.public JsonScanner(java.io.InputStream in)
in
- the java.io.Inputstream to read input from.public java.lang.String getText()
public JsonStreamSourceImpl.Scanner.Symbol nextSymbol() throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
public int getCharOffset()
public int getLineNumber()
public int getColumnNumber()
Copyright © 2005-2022 Apache Software Foundation. All Rights Reserved.