public class PathHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
PathHelper.Canonicalizer |
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_PATH_SEPARATOR |
| Constructor and Description |
|---|
PathHelper(PathHelper.Canonicalizer canonicalizer,
String pathSep) |
| Modifier and Type | Method and Description |
|---|---|
String |
adjustForParent(String parent,
String path) |
PathComponents |
getComponents(String path)
Divide the path into
PathComponents(parent, name) while making sure name != "." && name != ".." |
PathComponents |
getComponents(String parent,
String name) |
String |
getPathSeparator() |
String |
trimTrailingSeparator(String path) |
public static final String DEFAULT_PATH_SEPARATOR
public PathHelper(PathHelper.Canonicalizer canonicalizer, String pathSep)
public String getPathSeparator()
public PathComponents getComponents(String parent, String name)
public PathComponents getComponents(String path) throws IOException
PathComponents(parent, name) while making sure name != "." && name != ".."path - to convertIOExceptionCopyright © 2009–2014. All rights reserved.