Modifier and Type | Class and Description |
---|---|
static class |
JsonStreamSourceImpl.Scanner.Symbol |
Constructor and Description |
---|
JsonScanner(InputStream in)
Creates a new scanner.
|
JsonScanner(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() |
String |
getText() |
JsonStreamSourceImpl.Scanner.Symbol |
nextSymbol() |
public JsonScanner(Reader in)
in
- the java.io.Reader to read input from.public JsonScanner(InputStream in)
in
- the java.io.Inputstream to read input from.public String getText()
public JsonStreamSourceImpl.Scanner.Symbol nextSymbol() throws IOException
IOException
public void close() throws IOException
IOException
public int getCharOffset()
public int getLineNumber()
public int getColumnNumber()
Copyright © 2005–2019 Apache Software Foundation. All rights reserved.