public class FileResourceLoader extends ResourceLoader
className, isCachingOn, log, modificationCheckInterval, rsvc| 构造器和说明 |
|---|
FileResourceLoader() |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getLastModified(Resource resource)
Get the last modified time of the InputStream source
that was used to create the template.
|
java.io.InputStream |
getResourceStream(java.lang.String templateName)
Get an InputStream so that the Runtime can build a
template with it.
|
void |
init(org.apache.commons.collections.ExtendedProperties configuration)
Initialize the template loader with a
a resources class.
|
boolean |
isSourceModified(Resource resource)
How to keep track of all the modified times
across the paths.
|
boolean |
resourceExists(java.lang.String name)
Overrides superclass for better performance.
|
commonInit, getClassName, getModificationCheckInterval, isCachingOn, setCachingOn, setModificationCheckIntervalpublic void init(org.apache.commons.collections.ExtendedProperties configuration)
ResourceLoaderpublic java.io.InputStream getResourceStream(java.lang.String templateName)
throws ResourceNotFoundException
getResourceStream 在类中 ResourceLoadertemplateName - name of template to getResourceNotFoundException - if template not found
in the file template path.public boolean resourceExists(java.lang.String name)
resourceExists 在类中 ResourceLoadername - The name of a resource.public boolean isSourceModified(Resource resource)
isSourceModified 在类中 ResourceLoaderresource - public long getLastModified(Resource resource)
ResourceLoadergetLastModified 在类中 ResourceLoaderResourceLoader.getLastModified(bboss.org.apache.velocity.runtime.resource.Resource)