public class Sql2javaFileResourceLoader
extends org.apache.velocity.runtime.resource.loader.ResourceLoader
FileResourceLoader修改.| Constructor and Description |
|---|
Sql2javaFileResourceLoader() |
| Modifier and Type | Method and Description |
|---|---|
long |
getLastModified(org.apache.velocity.runtime.resource.Resource resource) |
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) |
boolean |
isSourceModified(org.apache.velocity.runtime.resource.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.
|
public void init(org.apache.commons.collections.ExtendedProperties configuration)
init in class org.apache.velocity.runtime.resource.loader.ResourceLoaderResourceLoader.init(org.apache.commons.collections.ExtendedProperties)public java.io.InputStream getResourceStream(java.lang.String templateName)
throws org.apache.velocity.exception.ResourceNotFoundException
getResourceStream in class org.apache.velocity.runtime.resource.loader.ResourceLoadertemplateName - name of template to getorg.apache.velocity.exception.ResourceNotFoundException - if template not found
in the file template path.public boolean resourceExists(java.lang.String name)
resourceExists in class org.apache.velocity.runtime.resource.loader.ResourceLoaderpublic boolean isSourceModified(org.apache.velocity.runtime.resource.Resource resource)
isSourceModified in class org.apache.velocity.runtime.resource.loader.ResourceLoaderresource - public long getLastModified(org.apache.velocity.runtime.resource.Resource resource)
getLastModified in class org.apache.velocity.runtime.resource.loader.ResourceLoaderResourceLoader.getLastModified(org.apache.velocity.runtime.resource.Resource)Copyright © 2021. All Rights Reserved.