org.apache.fop.fo

Class CharIterator

Implemented Interfaces:
Cloneable, Iterator
Known Direct Subclasses:
FOCharIterator, NullCharIterator, OneCharIterator, RecursiveCharIterator

public abstract class CharIterator
extends java.lang.Object
implements Iterator, 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

Object
clone()
abstract boolean
hasNext()
Object
next()
abstract char
nextChar()
void
remove()
void
replaceChar(char c)
Replace the current character managed by the iterator with a specified character?

Method Details

clone

public Object clone()
See Also:
java.lang.Object.clone()

hasNext

public abstract boolean hasNext()
See Also:
java.util.Iterator.hasNext()

next

public Object next()
            throws NoSuchElementException
See Also:
java.util.Iterator.next()

nextChar

public abstract char nextChar()
            throws NoSuchElementException
Returns:
the character that is the next character in the collection

remove

public void remove()
See Also:
java.util.Iterator.remove()

replaceChar

public void replaceChar(char c)
Replace the current character managed by the iterator with a specified character?
Parameters:
c - character

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