| java.text.CharacterIterator |
Known Indirect Subclasses
|
CharacterIterator is used to sequence over a group of characters. The iteration starts at the begin index in the group of character and continues to one index before the end index.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| char | DONE | A constant which indicates there is no character. | |||||||||
| 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 begin index.
| |||||||||||
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 current 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.
| |||||||||||
A constant which indicates there is no character.
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 begin index.
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 current 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.
| location | The index the CharacterIterator is set to. |
|---|
| IllegalArgumentException | when the new index is less than the begin index or greater than the end index |
|---|