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.
|
ReaderCursor(String s)
Create a cursor from a string.
|
| 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 |
get() |
int |
getNext()
Move cursor forward one position and get the character.
|
int |
read() |
String |
read(int count) |
String |
toString() |
public ReaderCursor(Reader r)
public ReaderCursor(String s)
public ParseException error(String message, Throwable e)
message - The message.public ParseException error(String message)
message - The message.public int get()
public int getNext()
public int read()
public String read(int count)
public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2015. All rights reserved.