private static class JavadocUtil.PathTokenizer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
dosStyleFilesystem
Flag to indicate whether or not we are running on a platform with a DOS style filesystem
|
private java.lang.String |
lookahead
A String which stores any path components which have been read ahead due to DOS filesystem compensation.
|
private boolean |
onNetWare
A boolean that determines if we are running on Novell NetWare, which exhibits slightly different path name
characteristics (multi-character volume / drive names)
|
private java.util.StringTokenizer |
tokenizer
A tokenizer to break the string up based on the ':' or ';' separators.
|
Constructor and Description |
---|
PathTokenizer(java.lang.String path)
Constructs a path tokenizer for the specified path.
|
Modifier and Type | Method and Description |
---|---|
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.
|
private java.util.StringTokenizer tokenizer
private java.lang.String lookahead
private boolean onNetWare
private boolean dosStyleFilesystem
PathTokenizer(java.lang.String path)
path
- The path to tokenize. Must not be null
.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.