public abstract class AbstractFileResolver extends Object implements FileResolver
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFileResolver(FileSystem fileSystem) |
| Modifier and Type | Method and Description |
|---|---|
protected File |
convertObjectToFile(Object path) |
protected URI |
convertObjectToURI(Object path) |
protected abstract File |
doResolve(Object path) |
File |
resolve(Object path) |
File |
resolve(Object path,
PathValidation validation) |
FileCollection |
resolveFiles(Object... paths) |
FileTree |
resolveFilesAsTree(Object... paths) |
FileSource |
resolveLater(Object path) |
ReadableResource |
resolveResource(Object path) |
URI |
resolveUri(Object path) |
protected void |
validate(File file,
PathValidation validation) |
FileResolver |
withBaseDir(Object path)
Creates a new resolver with the given base directory.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresolveAsRelativePathprotected AbstractFileResolver(FileSystem fileSystem)
public FileResolver withBaseDir(Object path)
FileResolverwithBaseDir in interface FileResolverpath - The path for the base directory. Resolved relative to the current base directory (if any).public File resolve(Object path)
resolve in interface FileResolverpublic File resolve(Object path, PathValidation validation)
resolve in interface FileResolverpublic FileSource resolveLater(Object path)
resolveLater in interface FileResolverpublic URI resolveUri(Object path)
resolveUri in interface FileResolverprotected void validate(File file, PathValidation validation)
public FileCollection resolveFiles(Object... paths)
resolveFiles in interface FileResolverpublic FileTree resolveFilesAsTree(Object... paths)
resolveFilesAsTree in interface FileResolverpublic ReadableResource resolveResource(Object path)
resolveResource in interface FileResolverCopyright © 2013. All rights reserved