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