CharIndexedCharArray
, CharIndexedInputStream
, CharIndexedReader
, CharIndexedString
, CharIndexedStringBuffer
public interface CharIndexed
Modifier and Type | Field | Description |
---|---|---|
static char |
OUT_OF_BOUNDS |
Defines a constant (0xFFFF was somewhat arbitrarily chosen)
that can be returned by the charAt() function indicating that
the specified index is out of range.
|
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.
|
static final char OUT_OF_BOUNDS
char charAt(int index)
index
- the offset position in the character field to examineboolean move(int index)
boolean isValid()