org.apache.tools.ant
public class PathTokenizer extends Object
Constructor Summary | |
---|---|
PathTokenizer(String path)
Constructs a path tokenizer for the specified path.
|
Method Summary | |
---|---|
boolean | hasMoreTokens()
Tests if there are more path elements available from this tokenizer's
path. |
String | nextToken()
Returns the next path element from this tokenizer.
|
Parameters: path The path to tokenize. Must not be null
.
true
, then a subsequent call
to nextToken will successfully return a token.
Returns: true
if and only if there is at least one token
in the string after the current position; false
otherwise.
Returns: the next path element from this tokenizer.
Throws: NoSuchElementException if there are no more elements in this tokenizer's path.