public class PathUtil
extends java.lang.Object
PathUtil
...Constructor and Description |
---|
PathUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
append(java.lang.String parent,
java.lang.String relPath) |
static int |
getDepth(java.lang.String path) |
static java.lang.String |
getPath(Node parent,
java.lang.String relPath) |
static java.io.File |
getRelativeFile(java.io.File parent,
java.io.File file) |
static java.lang.String |
getRelativeFilePath(java.lang.String cwd,
java.lang.String path) |
static java.lang.String |
getRelativeFilePath(java.lang.String cwd,
java.lang.String path,
java.lang.String separator) |
static java.lang.String |
getRelativePath(java.lang.String parent,
java.lang.String path) |
static java.lang.String[] |
makePath(java.lang.String[] parent,
java.lang.String path)
make a canonical path.
|
static java.lang.String |
makePath(java.lang.String parent,
java.lang.String relPath) |
public static java.lang.String[] makePath(java.lang.String[] parent, java.lang.String path)
parent
- the parent path (can be null
)path
- the path to resolvepublic static java.lang.String makePath(java.lang.String parent, java.lang.String relPath)
public static java.io.File getRelativeFile(java.io.File parent, java.io.File file)
public static java.lang.String getRelativePath(java.lang.String parent, java.lang.String path)
public static java.lang.String getRelativeFilePath(java.lang.String cwd, java.lang.String path)
public static java.lang.String getRelativeFilePath(java.lang.String cwd, java.lang.String path, java.lang.String separator)
public static java.lang.String append(java.lang.String parent, java.lang.String relPath)
public static int getDepth(java.lang.String path)
public static java.lang.String getPath(Node parent, java.lang.String relPath) throws RepositoryException
RepositoryException
Copyright © 2010 - 2020 Adobe. All Rights Reserved