public class TokenIterator extends Object
2015-sep-03 TODO: Only used in org.graalvm.shadowed.com.ibm.icu.dev.test.format, move there.
| Constructor and Description |
|---|
TokenIterator(ResourceReader r)
Construct an iterator over the tokens returned by the given
ResourceReader, ignoring blank lines and comment lines (first
non-blank character is '#').
|
| Modifier and Type | Method and Description |
|---|---|
String |
describePosition()
Return a string description of the position of the last line
returned by readLine() or readLineSkippingComments().
|
int |
getLineNumber()
Return the one-based line number of the line of the last token returned by
next().
|
String |
next()
Return the next token from this iterator, or null if the last
token has been returned.
|
public TokenIterator(ResourceReader r)
public String next() throws IOException
IOExceptionpublic int getLineNumber()
public String describePosition()