|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sas.hls.client.utils.RelativePathUtility
public abstract class RelativePathUtility
Utility class to generate a relative path for a file relative to the provided base path. Note relative paths are only supported within jobs.
Constructor Summary | |
---|---|
RelativePathUtility()
|
Method Summary | |
---|---|
static String |
getName(String path)
Return the name of the file or folder denoted by this path. |
static String |
getParentPath(String path)
Return the path to the parent folder for this file or folder path. |
static String |
getRelativePath(String basePath,
String absolutePath)
Generate a relative path for a file relative to the base path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RelativePathUtility()
Method Detail |
---|
public static String getRelativePath(String basePath, String absolutePath)
basePath
- Base container location.absolutePath
- Absolute path of the file to make relative to the base path.
public static String getParentPath(String path)
path
- the path to use
public static String getName(String path)
path
- the path use
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |