This class is a trivial implementation of the CharacterIterator interface that works for text stored in Java String objects. See CharacterIterator for details.
public final class StringCharacterIterator extends Object implements CharacterIterator { // Public Constructors public StringCharacterIterator(String text); public StringCharacterIterator(String text, int pos); public StringCharacterIterator(String text, int begin, int end, int pos); // Public Instance Methods public Object clone(); // Overrides Object public char current(); // From CharacterIterator public boolean equals(Object obj); // Overrides Object public char first(); // From CharacterIterator public int getBeginIndex(); // From CharacterIterator public int getEndIndex(); // From CharacterIterator public int getIndex(); // From CharacterIterator public int hashCode(); // Overrides Object public char last(); // From CharacterIterator public char next(); // From CharacterIterator public char previous(); // From CharacterIterator public char setIndex(int p); // From CharacterIterator }
Object->StringCharacterIterator(CharacterIterator(Cloneable))
This HTML Help has been published using the chm2web software. |