| |
|
| java.lang.Object org.acm.seguin.project.PathTokenizer
PathTokenizer | public class PathTokenizer (Code) | | A Path tokenizer takes a path and returns the components that make up
that path.
The path can use path separators of either ':' or ';' and file separators
of either '/' or '\'.
author: Conor MacNeill author: Jeff Tulley author: Mike Atkinson version: $Id: PathTokenizer.java,v 1.2 2003/09/04 19:47:13 mikeatkinson Exp $ since: 2.8.01 |
Constructor Summary | |
public | PathTokenizer(String path) Constructs a path tokenizer for the specified path.
Parameters: path - The path to tokenize. |
Method Summary | |
public boolean | hasMoreTokens() Tests if there are more path elements available from this tokenizer's
path. | public String | nextToken() Returns the next path element from this tokenizer. |
PathTokenizer | public PathTokenizer(String path)(Code) | | Constructs a path tokenizer for the specified path.
Parameters: path - The path to tokenize. Must not be null . |
hasMoreTokens | public boolean hasMoreTokens()(Code) | | Tests if there are more path elements available from this tokenizer's
path. If this method returns 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. |
|
|
|