Package org.apache.maven.plugins.javadoc
Class JavadocUtil.PathTokenizer
- java.lang.Object
-
- org.apache.maven.plugins.javadoc.JavadocUtil.PathTokenizer
-
- Enclosing class:
- JavadocUtil
private static class JavadocUtil.PathTokenizer extends java.lang.ObjectA 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 '\'.- Version:
- revision 439418 taken on 2009-09-12 from Ant Project (see http://svn.apache.org/repos/asf/ant/core/trunk/src/main/org/apache/tools/ant/PathTokenizer.java)
-
-
Field Summary
Fields Modifier and Type Field Description private booleandosStyleFilesystemFlag to indicate whether or not we are running on a platform with a DOS style filesystemprivate java.lang.StringlookaheadA String which stores any path components which have been read ahead due to DOS filesystem compensation.private booleanonNetWareA 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.StringTokenizertokenizerA tokenizer to break the string up based on the ':' or ';' separators.
-
Constructor Summary
Constructors Constructor Description PathTokenizer(java.lang.String path)Constructs a path tokenizer for the specified path.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasMoreTokens()Tests if there are more path elements available from this tokenizer's path.java.lang.StringnextToken()Returns the next path element from this tokenizer.
-
-
-
Field Detail
-
tokenizer
private java.util.StringTokenizer tokenizer
A tokenizer to break the string up based on the ':' or ';' separators.
-
lookahead
private java.lang.String lookahead
A String which stores any path components which have been read ahead due to DOS filesystem compensation.
-
onNetWare
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)
-
dosStyleFilesystem
private boolean dosStyleFilesystem
Flag to indicate whether or not we are running on a platform with a DOS style filesystem
-
-
Method Detail
-
hasMoreTokens
public boolean hasMoreTokens()
Tests if there are more path elements available from this tokenizer's path. If this method returnstrue, then a subsequent call to nextToken will successfully return a token.- Returns:
trueif and only if there is at least one token in the string after the current position;falseotherwise.
-
nextToken
public java.lang.String nextToken() throws java.util.NoSuchElementExceptionReturns the next path element from this tokenizer.- Returns:
- the next path element from this tokenizer.
- Throws:
java.util.NoSuchElementException- if there are no more elements in this tokenizer's path.
-
-