|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fop.fo.CharIterator
org.apache.fop.fo.RecursiveCharIterator
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.
| Constructor Summary | |
|---|---|
RecursiveCharIterator(FObj fobj)
Constructor which creates an iterator for all child nodes |
|
RecursiveCharIterator(FObj fobj,
FONode child)
Constructor which creates an iterator for only some child nodes |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
boolean |
hasNext()
|
CharIterator |
mark()
|
char |
nextChar()
|
void |
remove()
|
void |
replaceChar(char c)
Replaces the current character in the CharIterator with a specified character |
| Methods inherited from class org.apache.fop.fo.CharIterator |
|---|
next |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RecursiveCharIterator(FObj fobj)
fobj - FONode for which an iterator should be created
public RecursiveCharIterator(FObj fobj,
FONode child)
fobj - FObj for which an iterator should be createdchild - FONode of the first child to include in iterator| Method Detail |
|---|
public CharIterator mark()
public java.lang.Object clone()
CharIterator
clone in class CharIteratorpublic void replaceChar(char c)
replaceChar in class CharIteratorc - the character which should be used to replace the current
characterpublic boolean hasNext()
CharIterator
hasNext in interface java.util.IteratorhasNext in class CharIterator
public char nextChar()
throws java.util.NoSuchElementException
nextChar in class CharIteratorjava.util.NoSuchElementException - if there are no more characters (test for
this condition with java.util.Iterator.hasNext()).public void remove()
remove in interface java.util.Iteratorremove in class CharIterator
|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||