public interface Resolver
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
asFile(java.lang.String resourcePath)
Get the specified resources as a standard local file.
|
java.io.InputStream |
asStream(java.lang.String resourcePath)
Get the specified resources as an input stream.
|
void |
copyDirectory(java.lang.String dirPath,
java.io.File destinationDir)
Copy the directory resource (recursively) to the specified destination directory
|
boolean |
directoryExists(java.lang.String dirPath)
Determine if the specified directory resource can be resolved by
copyDirectory(String, File) |
boolean |
exists(java.lang.String resourcePath)
Determine if the specified file resource can be resolved by
asFile(String) and asStream(String) |
boolean |
hasLocalCache() |
java.io.File |
localCacheRoot() |
int |
priority()
Priority of this resolver.
|
int priority()
boolean exists(java.lang.String resourcePath)
asFile(String) and asStream(String)resourcePath - Path of the resource to be resolvedboolean directoryExists(java.lang.String dirPath)
copyDirectory(String, File)dirPath - Path of the directory resource to be resolvedjava.io.File asFile(java.lang.String resourcePath)
exists(String)resourcePath - Path of the resource.java.io.InputStream asStream(java.lang.String resourcePath)
exists(String)resourcePath - Path of the resource.void copyDirectory(java.lang.String dirPath,
java.io.File destinationDir)
dirPath - Path of the resource directory to resolvedestinationDir - Where the files should be copied toboolean hasLocalCache()
localCacheRoot()java.io.File localCacheRoot()
hasLocalCache() returns falseCopyright © 2019. All rights reserved.