| Modifier and Type | Field and Description |
|---|---|
| private CharacterIterator |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public CharacterIteratorWrapper | |
| public int | |
| public int | getIndex()
Implements abstract jdk. Gets the current index in text. |
| public int | getLength()
Implements abstract jdk. Returns the length of the text |
| public int | getText(char[] fillIn, int offset)
Implements abstract jdk. Fills the buffer with the underlying text storage of the iterator If the buffer capacity is not enough a exception is thrown. |
| public int | next()
Implements abstract jdk. Returns the UTF16 code unit at index, and increments to the next code unit (post-increment semantics). |
| public int | previous()
Implements abstract jdk. Decrement to the position of the previous code unit in the text, and return it (pre-decrement semantics). |
| public void | setIndex(int index)
Implements abstract jdk. Sets the index to the specified index in the text. |
| iterator | back to summary |
|---|---|
| private CharacterIterator iterator | |
| CharacterIteratorWrapper | back to summary |
|---|---|
| public CharacterIteratorWrapper(CharacterIterator iter) | |
| clone | back to summary |
|---|---|
| public CharacterIteratorWrapper clone() Overrides jdk. Creates a clone of this iterator. Clones the underlying character iterator.
| |
| current | back to summary |
|---|---|
public int current()
| |
| getIndex | back to summary |
|---|---|
| public int getIndex() Implements abstract jdk. Doc from jdk. Gets the current index in text.
| |
| getLength | back to summary |
|---|---|
| public int getLength() Implements abstract jdk. Doc from jdk. Returns the length of the text
| |
| getText | back to summary |
|---|---|
| public int getText(char[] fillIn, int offset) Implements abstract jdk. Doc from jdk. Fills the buffer with the underlying text storage of the iterator
If the buffer capacity is not enough a exception is thrown. The capacity
of the fill in buffer should at least be equal to length of text in the
iterator obtained by calling
| |
| next | back to summary |
|---|---|
| public int next() Implements abstract jdk. Doc from jdk. Returns the UTF16 code unit at index, and increments to the next code unit (post-increment semantics). If index is out of range, DONE is returned, and the iterator is reset to the limit of the text.
| |
| previous | back to summary |
|---|---|
| public int previous() Implements abstract jdk. Doc from jdk. Decrement to the position of the previous code unit in the text, and return it (pre-decrement semantics). If the resulting index is less than 0, the index is reset to 0 and DONE is returned.
| |
| setIndex | back to summary |
|---|---|
| public void setIndex(int index) Implements abstract jdk. Doc from jdk. Sets the index to the specified index in the text.
| |