Class PathSupport

java.lang.Object
org.opencastproject.util.PathSupport

@Deprecated public final class PathSupport extends Object
Deprecated.
PathSupport is a helper class to deal with filesystem paths.
  • Method Details

    • concat

      @Deprecated public static String concat(String prefix, String suffix)
      Deprecated.
      Use Java's native
      Paths.get(String, …).toFile()
      instead
      Concatenates the two urls with respect to leading and trailing slashes.
      Returns:
      the concatenated url of the two arguments
    • concat

      @Deprecated public static String concat(String[] parts)
      Deprecated.
      Use Java's native
      Paths.get(String, …).toFile()
      instead
      Concatenates the path elements with respect to leading and trailing slashes.
      Parameters:
      parts - the parts to concat
      Returns:
      the concatenated path
    • path

      @Deprecated public static String path(String... parts)
      Deprecated.