|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjfun.util.os.PathTokenizer
public class PathTokenizer
A copy-paste from Ant PathTokenizer. Used to tokenize path elements in a path list string.
Zephyr Business Solution
Constructor Summary | |
---|---|
PathTokenizer(java.lang.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. |
java.lang.String |
nextToken()
Returns the next path element from this tokenizer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PathTokenizer(java.lang.String path)
path
- The path to tokenize. Must not be null
.Method Detail |
---|
public boolean hasMoreTokens()
true
, then a subsequent call
to nextToken will successfully return a token.
true
if and only if there is at least one token
in the string after the current position; false
otherwise.public java.lang.String nextToken() throws java.util.NoSuchElementException
java.util.NoSuchElementException
- if there are no more elements in this
tokenizer's path.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |