public class TextReader extends Object
| Constructor and Description |
|---|
TextReader(Reader reader)
Constructor
|
TextReader(String text)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the text reader
|
Reader |
getReader()
Get the reader
|
String |
peekToken()
Peek at the next token without reading past it
|
double |
readDouble()
Read a double
|
String |
readToken()
Read the next token.
|
public TextReader(String text)
text - textpublic TextReader(Reader reader)
reader - readerpublic Reader getReader()
public void close()
public String readToken() throws IOException
IOException - upon read errorpublic String peekToken() throws IOException
IOException - upon read errorpublic double readDouble()
throws IOException
IOException - upon read errorCopyright © 2021 National Geospatial-Intelligence Agency. All rights reserved.