class CharIndexedReader extends java.lang.Object implements CharIndexed
OUT_OF_BOUNDS| Constructor and Description |
|---|
CharIndexedReader(java.io.Reader reader,
int index) |
| Modifier and Type | Method and Description |
|---|---|
char |
charAt(int index)
Returns the character at the given offset past the current cursor
position in the input.
|
boolean |
isValid()
Returns true if the most recent move() operation placed the cursor
position at a valid position in the input.
|
boolean |
move(int index)
Shifts the input buffer by a given number of positions.
|
public char charAt(int index)
CharIndexedcharAt in interface CharIndexedindex - the offset position in the character field to examinepublic boolean move(int index)
CharIndexedmove in interface CharIndexedpublic boolean isValid()
CharIndexedisValid in interface CharIndexed