net.sf.sfac.string
Class StringCharIterator

java.lang.Object
  extended by net.sf.sfac.string.AbstractCharIterator
      extended by net.sf.sfac.string.StringCharIterator
All Implemented Interfaces:
CharIterator

public class StringCharIterator
extends AbstractCharIterator

Char iterator fetching chars from a simple string.


Constructor Summary
StringCharIterator(String str)
           
 
Method Summary
protected  String getFirstString()
          Get the first String available for iteration.
protected  String getNextString()
          Get the next String available for iteration.
 void setData(String str)
           
 
Methods inherited from class net.sf.sfac.string.AbstractCharIterator
getNormalizedString, isFinished, nextChar, nextNormalizedChar, reset, setFinished
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringCharIterator

public StringCharIterator(String str)
Method Detail

setData

public void setData(String str)

getFirstString

protected String getFirstString()
Description copied from class: AbstractCharIterator
Get the first String available for iteration.

Specified by:
getFirstString in class AbstractCharIterator
Returns:
the first String available for iteration.

getNextString

protected String getNextString()
Description copied from class: AbstractCharIterator
Get the next String available for iteration.
If no next string is available, implementing classes have to call setFinished() (then the return value is ignored).

Specified by:
getNextString in class AbstractCharIterator
Returns:
the next String available for iteration.


Copyright © 2012. All Rights Reserved.