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 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 StringTokenizer | tokenizer
A tokenizer to break the string up based on the ':' or ';' separators. |
Access | Constructor and Description |
---|---|
public | PathTokenizer(String
The path to tokenize. Must not be path)null .Constructs a path tokenizer for the specified path. |
Modifier and Type | Method and Description |
---|---|
public boolean | Returns: true if and only if there is at least one token
in the string after the current position; false otherwise.Tests if there are more path elements available from this tokenizer's path. |
public String | Returns: the next path element from this tokenizer.Returns the next path element from this tokenizer. |
dosStyleFilesystem | back to summary |
---|---|
private boolean dosStyleFilesystem Flag to indicate whether or not we are running on a platform with a DOS style filesystem |
lookahead | back to summary |
---|---|
private String lookahead A String which stores any path components which have been read ahead due to DOS filesystem compensation. |
onNetWare | back to summary |
---|---|
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) |
tokenizer | back to summary |
---|---|
private StringTokenizer tokenizer A tokenizer to break the string up based on the ':' or ';' separators. |
PathTokenizer | back to summary |
---|---|
public PathTokenizer(String path) Constructs a path tokenizer for the specified path.
|
hasMoreTokens | back to summary |
---|---|
public boolean hasMoreTokens() Tests if there are more path elements available from this tokenizer's
path. If this method returns
|
nextToken | back to summary |
---|---|
public String nextToken() throws NoSuchElementException Returns the next path element from this tokenizer.
|