Package org.apache.fop.fo
Class CharIterator
java.lang.Object
org.apache.fop.fo.CharIterator
- Direct Known Subclasses:
NullCharIterator
,OneCharIterator
,RecursiveCharIterator
,StringCharIterator
Abstract base class for iterators that should iterate through a series
of characters. Extends the java.util.Iterator interface with some
additional functions useful for FOP's management of text.
-
Constructor Details
-
CharIterator
public CharIterator()
-
-
Method Details
-
hasNext
public abstract boolean hasNext() -
nextChar
- Returns:
- the character that is the next character in the collection
- Throws:
NoSuchElementException
- if there are no more characters (test for this condition with java.util.Iterator.hasNext()).
-
next
- Specified by:
next
in interfaceIterator
- Throws:
NoSuchElementException
-
remove
public void remove() -
replaceChar
public void replaceChar(char c) Replace the current character managed by the iterator with a specified character?- Parameters:
c
- character
-
clone
-