org.apache.fop.fo
Class OneCharIterator
- Cloneable, Iterator
public class OneCharIterator
Class providing an iterator for one character.
OneCharIterator
public OneCharIterator(char c)
Constructor
c
- the character that this iterator should iterate.
hasNext
public boolean hasNext()
- hasNext in interface CharIterator
- true if there is another element in the collection over which to
iterate (since this iterator only handles one character, this will return
false if it is past that character).
nextChar
public char nextChar()
throws NoSuchElementException
- nextChar in interface CharIterator
- the next character, if there is one (since there is only one
character over which to iterate, it must be the first character).
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.