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, toString
public 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
ResourceLoader
findResource
in class ResourceLoader
path
- The resource nameIOException
protected final String getDirectoryPath()
Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.