|
ShrinkWrap Aggregator and Build Parent 1.0.0-cr-1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.shrinkwrap.impl.base.path.PathUtil
public final class PathUtil
PathUtil A series of internal-only path utilities for adjusting relative forms, removing double-slashes, etc. Used in correcting inputs in the creation of new Paths
Field Summary | |
---|---|
static String |
EMPTY
Empty String |
static char |
SLASH
Slash character |
Method Summary | |
---|---|
static String |
adjustToAbsoluteDirectoryContext(String path)
Adjusts the specified path to absolute form: 1) Adds, if not present, a preceding slash 2) Adds, if not present, a trailing slash Null arguments are returned as-is |
static String |
adjustToRelativeDirectoryContext(String path)
Adjusts the specified path to relative form: 1) Removes, if present, a preceding slash 2) Adds, if not present, a trailing slash Null arguments are returned as-is |
static String |
composeAbsoluteContext(String base,
String context)
Composes an absolute context from a given base and actual context relative to the base, returning the result. |
static String |
optionallyAppendSlash(String path)
Adds, if not already present, the absolute slash following the specified path, and returns the adjusted result. |
static String |
optionallyPrependSlash(String path)
Adds, if not already present, the absolute slash preceding the specified path, and returns the adjusted result. |
static String |
optionallyRemoveFollowingSlash(String path)
Removes, if present, the absolute slash following the specified path, and returns the adjusted result. |
static String |
optionallyRemovePrecedingSlash(String path)
Removes, if present, the absolute slash preceding the specified path, and returns the adjusted result. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char SLASH
public static final String EMPTY
Method Detail |
---|
public static String composeAbsoluteContext(String base, String context)
public static String adjustToRelativeDirectoryContext(String path)
path
- public static String adjustToAbsoluteDirectoryContext(String path)
path
- public static String optionallyRemovePrecedingSlash(String path)
path
-
public static String optionallyRemoveFollowingSlash(String path)
path
-
public static String optionallyAppendSlash(String path)
path
-
public static String optionallyPrependSlash(String path)
path
-
|
ShrinkWrap Aggregator and Build Parent 1.0.0-cr-1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |