Class PathUtil

java.lang.Object
org.apache.jackrabbit.vault.util.PathUtil

public class PathUtil extends Object
PathUtil...
  • Constructor Details

    • PathUtil

      public PathUtil()
  • Method Details

    • 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 be null)
      path - the path to resolve
      Returns:
      the canonicalized path
    • makePath

      public static String makePath(String parent, String relPath)
    • getRelativeFile

      public static File getRelativeFile(File parent, File file)
    • getRelativePath

      public static String getRelativePath(String parent, String path)
    • getRelativeFilePath

      public static String getRelativeFilePath(String cwd, String path)
    • getRelativeFilePath

      public static String getRelativeFilePath(String cwd, String path, String separator)
    • append

      public static String append(String parent, String relPath)
    • getDepth

      public static int getDepth(String path)
    • getPath

      public static String getPath(Node parent, String relPath) throws RepositoryException
      Throws:
      RepositoryException