CharIndexed
class CharIndexedReader extends java.lang.Object implements CharIndexed
OUT_OF_BOUNDS
Constructor | Description |
---|---|
CharIndexedReader(java.io.Reader reader,
int index) |
Modifier and Type | Method | 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)
CharIndexed
charAt
in interface CharIndexed
index
- the offset position in the character field to examinepublic boolean move(int index)
CharIndexed
move
in interface CharIndexed
public boolean isValid()
CharIndexed
isValid
in interface CharIndexed