|
EAC Toolkit 3.2.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.endeca.soleng.eac.toolkit.utils.PathUtils
public class PathUtils
This class exposes static utility methods for manipulating, parsing and interpreting paths.
| Constructor Summary | |
|---|---|
PathUtils()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getAbsolutePath(java.lang.String workingDir,
java.lang.String path)
Returns a string representation of the specified path, resolved against the working directory, if it isn't absolute. |
static java.lang.String |
getFileNameFromPath(java.lang.String path)
Strips the directory path from a file or dir name, returning just the trailing prefix/filename from a path. |
static boolean |
isAbsolute(java.lang.String path)
Returns true if the specified path is absolute. |
static java.lang.String[] |
splitRootFromAbsolutePath(java.lang.String path)
Splits an absolute path into an absolute root directory and a path relative to that root directory. |
static java.lang.String |
stripFilenameFromPath(java.lang.String path)
Removes the trailing prefix/filename from a path, returning just the directory path. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PathUtils()
| Method Detail |
|---|
public static java.lang.String getAbsolutePath(java.lang.String workingDir,
java.lang.String path)
workingDir - Working dir specified for the component.path - The path to resolve.
public static java.lang.String stripFilenameFromPath(java.lang.String path)
path - Path whose trailing filename will be removed.
public static java.lang.String getFileNameFromPath(java.lang.String path)
path - Path from which to retrieve the filename.
public static boolean isAbsolute(java.lang.String path)
path - Path to test.
public static java.lang.String[] splitRootFromAbsolutePath(java.lang.String path)
path - Path to split.
|
EAC Toolkit 3.2.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@VERSION PRODUCT: EAC Toolkit (eacToolkit) VERSION: 3.2.1 BUILD: NONE ARCH_OS: n/a DATE: 2011-11-10T16:21:05-0500