Package org.apache.jackrabbit.vault.util
Class PathUtil
- java.lang.Object
-
- org.apache.jackrabbit.vault.util.PathUtil
-
public class PathUtil extends Object
PathUtil...
-
-
Constructor Summary
Constructors Constructor Description PathUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringappend(String parent, String relPath)static intgetDepth(String path)static StringgetPath(Node parent, String relPath)static FilegetRelativeFile(File parent, File file)static StringgetRelativeFilePath(String cwd, String path)static StringgetRelativeFilePath(String cwd, String path, String separator)static StringgetRelativePath(String parent, String path)static String[]makePath(String[] parent, String path)make a canonical path. removes all /./ and /../ and multiple slashes.static StringmakePath(String parent, String relPath)
-
-
-
Method Detail
-
makePath
public static String[] makePath(String[] parent, String path)
make a canonical path. removes all /./ and /../ and multiple slashes.- Parameters:
parent- the parent path (can benull)path- the path to resolve- Returns:
- the canonicalized path
-
getRelativeFilePath
public static String getRelativeFilePath(String cwd, String path, String separator)
-
getDepth
public static int getDepth(String path)
-
getPath
public static String getPath(Node parent, String relPath) throws RepositoryException
- Throws:
RepositoryException
-
-