Modifier and Type | Field and Description |
---|---|
private static final boolean[] | CS_SCAN_ONLY
iterations for case-sensitive scanning. |
private static final boolean[] | CS_THEN_NON_CS
iterations for non-case-sensitive scanning. |
public static final TokenizedPath | EMPTY_PATH
Instance that holds no tokens at all. |
private static final FileUtils | FILE_UTILS
Helper. |
private final String | |
private final String[] |
Access | Constructor and Description |
---|---|
public | TokenizedPath(String
The path to tokenize. Must not be
path)null .Initialize the TokenizedPath by parsing it. |
public | TokenizedPath(TokenizedPath
the parent path parent, String the child, must not contain the file separator child)Creates a new path as a child of another path. |
pack-priv |
Modifier and Type | Method and Description |
---|---|
public int | |
public boolean | Returns: booleanthe reference object with which to compare. o)Overrides java. |
public File | |
private static File | Returns: File object that points to the file in question or null.base File (dir) - must not be null. base, final String[] array of path elements (dirs...file). pathElements, final boolean whether to scan case-sensitively. cs)From |
pack-priv String[] | |
public int | |
public boolean | |
public TokenizedPattern | Returns: TokenizedPatternCreates a TokenizedPattern from the same tokens that make up this path. |
public String | Returns: The original path StringOverrides java. |
CS_SCAN_ONLY | back to summary |
---|---|
private static final boolean[] CS_SCAN_ONLY iterations for case-sensitive scanning. |
CS_THEN_NON_CS | back to summary |
---|---|
private static final boolean[] CS_THEN_NON_CS iterations for non-case-sensitive scanning. |
EMPTY_PATH | back to summary |
---|---|
public static final TokenizedPath EMPTY_PATH Instance that holds no tokens at all. |
FILE_UTILS | back to summary |
---|---|
private static final FileUtils FILE_UTILS Helper. |
path | back to summary |
---|---|
private final String path |
tokenizedPath | back to summary |
---|---|
private final String[] tokenizedPath |
TokenizedPath | back to summary |
---|---|
public TokenizedPath(String path) Initialize the TokenizedPath by parsing it.
|
TokenizedPath | back to summary |
---|---|
public TokenizedPath(TokenizedPath parent, String child) Creates a new path as a child of another path.
|
TokenizedPath | back to summary |
---|---|
pack-priv TokenizedPath(String path, String[] tokens) |
depth | back to summary |
---|---|
public int depth() The depth (or length) of a path.
|
equals | back to summary |
---|---|
public boolean equals(Object o) Overrides java. true if the original paths are equal.
|
findFile | back to summary |
---|---|
public File findFile(File base, final boolean cs) From |
findFile | back to summary |
---|---|
private static File findFile(File base, final String[] pathElements, final boolean cs) From |
getTokens | back to summary |
---|---|
pack-priv String[] getTokens() |
hashCode | back to summary |
---|---|
public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
|
isSymlink | back to summary |
---|---|
public boolean isSymlink(File base) Do we have to traverse a symlink when trying to reach path from basedir?
|
toPattern | back to summary |
---|---|
public TokenizedPattern toPattern() Creates a TokenizedPattern from the same tokens that make up this path.
|
toString | back to summary |
---|---|
public String toString() Overrides java. Doc from java. Returns a string representation of the object. |