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:
- FOCharIterator, NullCharIterator, OneCharIterator, RecursiveCharIterator
public abstract class CharIterator
- extends java.lang.Object
- implements java.util.Iterator, java.lang.Cloneable
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.
Method Summary |
java.lang.Object |
clone()
|
abstract boolean |
hasNext()
|
java.lang.Object |
next()
|
abstract char |
nextChar()
|
void |
remove()
|
void |
replaceChar(char c)
Replace the current character managed by the iterator with a specified
character? |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CharIterator
public CharIterator()
hasNext
public abstract boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator
- See Also:
Iterator.hasNext()
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:
next
in interface java.util.Iterator
- Throws:
java.util.NoSuchElementException
- See Also:
Iterator.next()
remove
public void remove()
- Specified by:
remove
in interface java.util.Iterator
- See Also:
Iterator.remove()
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:
clone
in class java.lang.Object
- See Also:
Object.clone()
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.