public class CharTracker
extends java.lang.Object
| Constructor and Description |
|---|
CharTracker(java.lang.String source,
int offset)
Constructor
|
public CharTracker(java.lang.String source,
int offset)
source - string supplying character dataoffset - initial character position within source stringpublic char next()
java.lang.ArrayIndexOutOfBoundsException - if past end of textpublic char peek()
java.lang.ArrayIndexOutOfBoundsException - if past end of textpublic boolean hasNext()
true if a character is available,
false if at end