Package org.apache.fop.fo
Class CharIterator
- java.lang.Object
-
- org.apache.fop.fo.CharIterator
-
- All Implemented Interfaces:
java.lang.Cloneable,java.util.Iterator
- Direct Known Subclasses:
NullCharIterator,OneCharIterator,RecursiveCharIterator,StringCharIterator
public abstract class CharIterator extends java.lang.Object implements java.util.Iterator, java.lang.CloneableAbstract 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 Summary
Constructors Constructor Description CharIterator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()abstract booleanhasNext()java.lang.Objectnext()abstract charnextChar()voidremove()voidreplaceChar(char c)Replace the current character managed by the iterator with a specified character?
-
-
-
Method Detail
-
hasNext
public abstract boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator
-
nextChar
public abstract char nextChar() throws java.util.NoSuchElementException- Returns:
- the character that is the next character in the collection
- Throws:
java.util.NoSuchElementException- if there are no more characters (test for this condition with java.util.Iterator.hasNext()).
-
next
public java.lang.Object next() throws java.util.NoSuchElementException- Specified by:
nextin interfacejava.util.Iterator- Throws:
java.util.NoSuchElementException
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator
-
replaceChar
public void replaceChar(char c)
Replace the current character managed by the iterator with a specified character?- Parameters:
c- character
-
clone
public java.lang.Object clone()
- Overrides:
clonein classjava.lang.Object
-
-