API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.text. StringCharacterIterator View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      StringCharacterIterator
Implements
 CharacterIterator
Subclasses
Description
publicfinal class StringCharacterIterator
  StringCharacterIterator implements the CharacterIterater protocol for a String.
See also:    CharacterIterator
Constructors
public StringCharacterIterator (String text)
Constructs an iterator with an initial index of 0.
public StringCharacterIterator (String text, int pos)
  Constructs an iterator with the specified initial index.
public StringCharacterIterator (String text, int begin, int end, int pos)
  Constructs an iterator over the given range of the given string, with the index set at the specified position.
Methods
Hide/Show inherited methods
public Object clone () [Specified in CharacterIterator]
  Creates a copy of this iterator.
public char current () [Specified in CharacterIterator]
  Implements CharacterIterator.current() for String.
public boolean equals (Object obj)
  Compares the equality of two StringCharacterIterator objects.
public char first () [Specified in CharacterIterator]
  Implements CharacterIterator.first() for String.
public int getBeginIndex () [Specified in CharacterIterator]
  Implements CharacterIterator.getBeginIndex() for String.
public int getEndIndex () [Specified in CharacterIterator]
  Implements CharacterIterator.getEndIndex() for String.
public int getIndex () [Specified in CharacterIterator]
  Implements CharacterIterator.getIndex() for String.
public int hashCode ()
  Computes a hashcode for this iterator.
public char last () [Specified in CharacterIterator]
  Implements CharacterIterator.last() for String.
public char next () [Specified in CharacterIterator]
  Implements CharacterIterator.next() for String.
public char previous () [Specified in CharacterIterator]
  Implements CharacterIterator.previous() for String.
public char setIndex (int p) [Specified in CharacterIterator]
  Implements CharacterIterator.setIndex() for String.
public void setText (String text)
  Reset this iterator to point to a new string.
Fields
Hide/Show inherited fields
publicfinalstatic char DONE = "65535" [Inherited From CharacterIterator]
  Constant that is returned when the iterator has reached either the end or the beginning of the text.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar