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.
|
getContentType, getContentType, getNullResourceLoader, getParent, getResource, isCachable
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
Copyright © 2001-2016 The Apache Software Foundation. All Rights Reserved.