public class PathFactory
extends java.lang.Object
| Constructor | Description |
|---|---|
PathFactory() |
| Modifier and Type | Method | Description |
|---|---|---|
PathFactory |
addPathVariable(java.lang.String name,
java.io.File dir) |
|
FilePath |
path(java.io.File file) |
Creates a path for the given file.
|
FilePath |
path(java.io.File file,
boolean useFileScheme) |
Creates a path for the given file.
|
Path |
path(java.lang.String url) |
Creates a path for the given URL.
|
Path |
path(java.lang.String url,
java.lang.String relPath) |
Creates a path for the given URL.
|
FilePath |
relativePath(java.lang.String pathVar,
java.io.File file) |
Creates a path relative to the given path variable.
|
public PathFactory addPathVariable(java.lang.String name, java.io.File dir)
public FilePath path(java.io.File file)
public FilePath path(java.io.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(java.lang.String pathVar, java.io.File file)
public Path path(java.lang.String url)
public Path path(java.lang.String url, java.lang.String relPath)