org.apache.fop.fo.flow

Class FOCharIterator

Implemented Interfaces:
Cloneable, Iterator

public class FOCharIterator
extends CharIterator

Used by the RecursiveCharIterator to iterate over a Character

Constructor Summary

FOCharIterator(Character foChar)
Main constructor

Method Summary

boolean
hasNext()
char
nextChar()
void
remove()
Removes the child from the parent
void
replaceChar(char c)
Replaces the character with another one

Methods inherited from class org.apache.fop.fo.CharIterator

clone, hasNext, next, nextChar, remove, replaceChar

Constructor Details

FOCharIterator

protected FOCharIterator(Character foChar)
Main constructor
Parameters:
foChar - the FOCharacter

Method Details

hasNext

public boolean hasNext()
Overrides:
hasNext in interface CharIterator
Returns:
true if this iterator has another character available

nextChar

public char nextChar()
Overrides:
nextChar in interface CharIterator
Returns:
the next character

remove

public void remove()
Removes the child from the parent
Overrides:
remove in interface CharIterator

replaceChar

public void replaceChar(char c)
Replaces the character with another one
Overrides:
replaceChar in interface CharIterator
Parameters:
c - the replacement character

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.