public static class VelocityEngine.VelocityResourceLoader
extends org.apache.velocity.runtime.resource.loader.ResourceLoader
| Modifier and Type | Field and Description |
|---|---|
protected java.nio.charset.Charset |
charset |
protected java.lang.String |
extension |
protected boolean |
reloadable |
protected java.lang.String |
templatePath |
| Constructor and Description |
|---|
VelocityResourceLoader() |
| Modifier and Type | Method and Description |
|---|---|
long |
getLastModified(org.apache.velocity.runtime.resource.Resource resource) |
java.io.Reader |
getResourceReader(java.lang.String source,
java.lang.String encoding) |
void |
init(org.apache.velocity.util.ExtProperties configuration) |
boolean |
isSourceModified(org.apache.velocity.runtime.resource.Resource resource) |
protected java.lang.String templatePath
protected java.lang.String extension
protected boolean reloadable
protected java.nio.charset.Charset charset
public java.io.Reader getResourceReader(java.lang.String source,
java.lang.String encoding)
throws org.apache.velocity.exception.ResourceNotFoundException
getResourceReader in class org.apache.velocity.runtime.resource.loader.ResourceLoaderorg.apache.velocity.exception.ResourceNotFoundExceptionpublic void init(org.apache.velocity.util.ExtProperties configuration)
init 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.ResourceLoaderpublic long getLastModified(org.apache.velocity.runtime.resource.Resource resource)
getLastModified in class org.apache.velocity.runtime.resource.loader.ResourceLoader