java.text.CharacterIterator |
Known Indirect Subclasses |
An interface for the bidirectional iteration over a group of characters. The iteration starts at the begin index in the group of characters and continues to one index before the end index.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
char | DONE | A constant which indicates that there is no character at the current index. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a new
CharacterIterator with the same properties. | |||||||||||
Returns the character at the current index.
| |||||||||||
Sets the current position to the begin index and returns the character at
the new position.
| |||||||||||
Returns the begin index.
| |||||||||||
Returns the end index.
| |||||||||||
Returns the current index.
| |||||||||||
Sets the current position to the end index - 1 and returns the character
at the new position.
| |||||||||||
Increments the current index and returns the character at the new index.
| |||||||||||
Decrements the current index and returns the character at the new index.
| |||||||||||
Sets the current index to a new position and returns the character at the
new index.
|
A constant which indicates that there is no character at the current index.
Returns a new CharacterIterator
with the same properties.
Returns the character at the current index.
DONE
if the current index is
past the beginning or end of the sequence.Sets the current position to the begin index and returns the character at the new position.
Returns the begin index.
Returns the end index.
Returns the current index.
Sets the current position to the end index - 1 and returns the character at the new position.
Increments the current index and returns the character at the new index.
DONE
if the next
index would be past the end.Decrements the current index and returns the character at the new index.
DONE
if the
previous index would be past the beginning.Sets the current index to a new position and returns the character at the new index.
location | the new index that this character iterator is set to. |
---|
DONE
if the index is
past the end.IllegalArgumentException | if location is less than the begin index or
greater than the end index. |
---|