Class PathFactory


  • public class PathFactory
    extends Object
    Path Factory.
    • Constructor Detail

      • PathFactory

        public PathFactory()
    • Method Detail

      • path

        public FilePath path​(File file)
        Creates a path for the given file.
      • path

        public FilePath path​(File file,
                             boolean useFileScheme)
        Creates a path for the given file.
        Parameters:
        file - The file to generate a path for
        useFileScheme - Whether 'file://' prefixed URI should be used even for JAR files
      • relativePath

        public FilePath relativePath​(String pathVar,
                                     File file)
        Creates a path relative to the given path variable.
      • path

        public Path path​(String url)
        Creates a path for the given URL.
      • path

        public Path path​(String url,
                         String relPath)
        Creates a path for the given URL.