public class ClasspathResourceLoader
extends org.apache.velocity.runtime.resource.loader.ResourceLoader
Please not that no effort is taken to "chroot" the path.
Constructor and Description |
---|
ClasspathResourceLoader() |
Modifier and Type | Method and Description |
---|---|
long |
getLastModified(org.apache.velocity.runtime.resource.Resource resource) |
java.io.Reader |
getResourceReader(java.lang.String name,
java.lang.String encoding) |
void |
init(org.apache.velocity.util.ExtProperties configuration) |
boolean |
isSourceModified(org.apache.velocity.runtime.resource.Resource resource) |
public long getLastModified(org.apache.velocity.runtime.resource.Resource resource)
getLastModified
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
public java.io.Reader getResourceReader(java.lang.String name, java.lang.String encoding) throws org.apache.velocity.exception.ResourceNotFoundException
getResourceReader
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
org.apache.velocity.exception.ResourceNotFoundException
public void init(org.apache.velocity.util.ExtProperties configuration)
init
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
public boolean isSourceModified(org.apache.velocity.runtime.resource.Resource resource)
isSourceModified
in class org.apache.velocity.runtime.resource.loader.ResourceLoader