Package org.apache.jackrabbit.vault.util
Class PathUtil
java.lang.Object
org.apache.jackrabbit.vault.util.PathUtil
PathUtil...-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic intstatic Stringstatic 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[]make a canonical path. removes all /./ and /../ and multiple slashes.static String
-
Constructor Details
-
PathUtil
public PathUtil()
-
-
Method Details
-
makePath
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
-
makePath
-
getRelativeFile
-
getRelativePath
-
getRelativeFilePath
-
getRelativeFilePath
-
append
-
getDepth
-
getPath
- Throws:
RepositoryException
-