org.apache.fop.fo
Class RecursiveCharIterator
- Cloneable, Iterator
public class RecursiveCharIterator
Kind of a super-iterator that iterates through child nodes of an FONode,
in turn managing character iterators for each of them. Caveat: Because this
class is itself a CharIterator, and manages a collection of CharIterators, it
is easy to get confused.
RecursiveCharIterator
public RecursiveCharIterator(FObj fobj)
Constructor which creates an iterator for all child nodes
fobj
- FONode for which an iterator should be created
RecursiveCharIterator
public RecursiveCharIterator(FObj fobj,
FONode child)
Constructor which creates an iterator for only some child nodes
fobj
- FObj for which an iterator should be createdchild
- FONode of the first child to include in iterator
hasNext
public boolean hasNext()
- hasNext in interface CharIterator
- true if there are more items in the CharIterator
mark
public CharIterator mark()
- clone of this, cast as a CharIterator
replaceChar
public void replaceChar(char c)
Replaces the current character in the CharIterator with a specified
character
- replaceChar in interface CharIterator
c
- the character which should be used to replace the current
character
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.