public class Sql2javaFileResourceLoader
extends org.apache.velocity.runtime.resource.loader.ResourceLoader
FileResourceLoader修改.| 构造器和说明 |
|---|
Sql2javaFileResourceLoader() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在类中 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 在类中 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 在类中 org.apache.velocity.runtime.resource.loader.ResourceLoaderpublic boolean isSourceModified(org.apache.velocity.runtime.resource.Resource resource)
isSourceModified 在类中 org.apache.velocity.runtime.resource.loader.ResourceLoaderresource - public long getLastModified(org.apache.velocity.runtime.resource.Resource resource)
getLastModified 在类中 org.apache.velocity.runtime.resource.loader.ResourceLoaderResourceLoader.getLastModified(org.apache.velocity.runtime.resource.Resource)Copyright © 2025. All Rights Reserved.