public class PathFactory extends Object
Constructor and Description |
---|
PathFactory() |
Modifier and Type | Method and Description |
---|---|
PathFactory |
addPathVariable(String name,
File dir) |
FilePath |
path(File file)
Creates a path for the given file.
|
FilePath |
path(File file,
boolean useFileScheme)
Creates a path for the given file.
|
Path |
path(String url)
Creates a path for the given URL.
|
Path |
path(String url,
String relPath)
Creates a path for the given URL.
|
FilePath |
relativePath(String pathVar,
File file)
Creates a path relative to the given path variable.
|
public PathFactory addPathVariable(String name, File dir)
public FilePath path(File file, boolean useFileScheme)
file
- The file to generate a path foruseFileScheme
- Whether 'file://' prefixed URI should be used even for JAR filespublic FilePath relativePath(String pathVar, File file)