public class DirectoryResourceLoader extends ResourceLoader
| Constructor and Description |
|---|
DirectoryResourceLoader(File directory)
Constructs a new DirectoryResourceLoader.
|
DirectoryResourceLoader(File directory,
ResourceLoader parent)
Constructs a new DirectoryResourceLoader.
|
| Modifier and Type | Method and Description |
|---|---|
protected URL |
findResource(String path)
Finds the resource with the given name.
|
protected String |
getDirectoryPath() |
getContentType, getContentType, getNullResourceLoader, getParent, getResource, isCachable, toStringpublic DirectoryResourceLoader(File directory)
directory - the root directorypublic DirectoryResourceLoader(File directory, ResourceLoader parent)
directory - the root directoryparent - the parent resource loaderprotected URL findResource(String path) throws IOException
ResourceLoaderfindResource in class ResourceLoaderpath - The resource nameIOExceptionprotected final String getDirectoryPath()
Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.