org.apache.velocity.runtime.resource.loader
public class FileResourceLoader extends ResourceLoader
Version: $Id: FileResourceLoader.java,v 1.19.4.1 2004/03/03 23:23:02 geirm Exp $
Field Summary | |
---|---|
Vector | paths
The paths to search for templates. |
Hashtable | templatePaths
Used to map the path that a template was found on
so that we can properly check the modification
times of the files. |
Method Summary | |
---|---|
InputStream | findTemplate(String path, String template)
Try to find a template given a normalized path.
|
long | getLastModified(Resource resource) |
InputStream | getResourceStream(String templateName)
Get an InputStream so that the Runtime can build a
template with it.
|
void | init(ExtendedProperties configuration) |
boolean | isSourceModified(Resource resource)
How to keep track of all the modified times
across the paths. |
Parameters: String a normalized path
Returns: InputStream input stream that will be parsed
Parameters: name name of template to get
Returns: InputStream containing the template
Throws: ResourceNotFoundException if template not found in the file template path.