| Modifier and Type | Field and Description |
|---|---|
| private int | currentIndex
Current currentIndex |
| private Replaceable | replaceable
Replaceable object |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ReplaceableUCharacterIterator(StringBuffer
buffer of text on which the iterator will be based buf)Public constructor |
| Modifier and Type | Method and Description |
|---|---|
| public ReplaceableUCharacterIterator | Returns: copy of this iteratorOverrides jdk. Creates a copy of this iterator, does not clone the underlying
|
| public int | |
| public int | Returns: current currentIndex in text.Implements abstract jdk. Gets the current currentIndex in text. |
| public int | Returns: length of the textImplements 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 | Returns: next UTF16 character in text or DONE if the new currentIndex is off the end of the text range.Implements abstract jdk. Returns next UTF16 character and increments the iterator's currentIndex by 1. |
| public int | Returns: next UTF16 character in text or DONE if the new currentIndex is off the start of the text range.Implements abstract jdk. Returns previous UTF16 character and decrements the iterator's currentIndex by 1. |
| public void | setIndex(int
the currentIndex within the text. currentIndex)Implements abstract jdk. Sets the currentIndex to the specified currentIndex in the text and returns that single UTF16 character at currentIndex. |
| currentIndex | back to summary |
|---|---|
| private int currentIndex Current currentIndex | |
| replaceable | back to summary |
|---|---|
| private Replaceable replaceable Replaceable object | |
| ReplaceableUCharacterIterator | back to summary |
|---|---|
| public ReplaceableUCharacterIterator(String str) Public constructor
| |
| ReplaceableUCharacterIterator | back to summary |
|---|---|
| public ReplaceableUCharacterIterator(StringBuffer buf) Public constructor
| |
| clone | back to summary |
|---|---|
| public ReplaceableUCharacterIterator clone() Overrides jdk. Creates a copy of this iterator, does not clone the underlying
| |
| current | back to summary |
|---|---|
| public int current() Returns the current UTF16 character.
| |
| getIndex | back to summary |
|---|---|
| public int getIndex() Implements abstract jdk. Gets the current currentIndex in text.
| |
| getLength | back to summary |
|---|---|
| public int getLength() Implements abstract 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. Returns next UTF16 character and increments the iterator's currentIndex by 1. If the resulting currentIndex is greater or equal to the text length, the currentIndex is reset to the text length and a value of DONECODEPOINT is returned.
| |
| previous | back to summary |
|---|---|
| public int previous() Implements abstract jdk. Returns previous UTF16 character and decrements the iterator's currentIndex by 1. If the resulting currentIndex is less than 0, the currentIndex is reset to 0 and a value of DONECODEPOINT is returned.
| |
| setIndex | back to summary |
|---|---|
| public void setIndex(int currentIndex) Implements abstract jdk. Sets the currentIndex to the specified currentIndex in the text and returns that single UTF16 character at currentIndex. This assumes the text is stored as 16-bit code units.
| |