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.ResourceLoaderpublic InputStream getResourceStream(String name) throws org.apache.velocity.exception.ResourceNotFoundException
getResourceStream in class org.apache.velocity.runtime.resource.loader.ResourceLoaderorg.apache.velocity.exception.ResourceNotFoundExceptionpublic void init(org.apache.commons.collections.ExtendedProperties 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.ResourceLoaderCopyright © 2005–2016. All rights reserved.