public class StringParser
extends java.lang.Object
Constructor and Description |
---|
StringParser(java.lang.String s)
Construct a string parser for the specified string.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasMoreStrings()
Determine whether the parser has more strings.
|
java.lang.String |
nextString()
Get the next string.
|
public StringParser(java.lang.String s)
s
- string to parse.public boolean hasMoreStrings()
public java.lang.String nextString()
java.util.NoSuchElementException
- if parser has no more strings.