public class RepresentationResourceLoader
extends org.apache.velocity.runtime.resource.loader.ResourceLoader
Constructor and Description |
---|
RepresentationResourceLoader(Representation defaultRepresentation)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
getLastModified(org.apache.velocity.runtime.resource.Resource resource) |
InputStream |
getResourceStream(String name) |
static Map<String,Representation> |
getStore()
Returns the cache of template representations.
|
void |
init(org.apache.commons.collections.ExtendedProperties configuration) |
boolean |
isSourceModified(org.apache.velocity.runtime.resource.Resource resource) |
public RepresentationResourceLoader(Representation defaultRepresentation)
defaultRepresentation
- The default representation to use.public static Map<String,Representation> getStore()
public long getLastModified(org.apache.velocity.runtime.resource.Resource resource)
getLastModified
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
public InputStream getResourceStream(String name) throws org.apache.velocity.exception.ResourceNotFoundException
getResourceStream
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
org.apache.velocity.exception.ResourceNotFoundException
public void init(org.apache.commons.collections.ExtendedProperties 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
Copyright © 2005–2014. All rights reserved.