public class ReaderCursor extends Object implements AutoCloseable
| Constructor and Description |
|---|
ReaderCursor(Reader r)
Creates a new instance of ReaderCursor using the underlying Reader as it's
datasource.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the underlying reader.
|
ParseException |
error(String message)
An exception with the specified message.
|
ParseException |
error(String message,
Throwable e)
An exception with the specified message.
|
int |
peek() |
int |
peekNext()
Consume the current character and return the next available.
|
int |
read() |
String |
read(int count) |
String |
toString() |
public ReaderCursor(Reader r)
public ParseException error(String message, Throwable e)
message - The message.public ParseException error(String message)
message - The message.public int peek()
public int read()
public int peekNext()
public String read(int count)
count - public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2014. All rights reserved.