public class Templates
extends org.apache.velocity.runtime.resource.loader.ResourceLoader
Modifier and Type | Field and Description |
---|---|
static String |
ROOT
The root template containing the
|
Constructor and Description |
---|
Templates() |
Modifier and Type | Method and Description |
---|---|
static void |
copyTemplates(File templateFolder)
Copy the main templates to the given template folder.
|
long |
getLastModified(org.apache.velocity.runtime.resource.Resource resource) |
InputStream |
getResourceStream(String source) |
void |
init(org.apache.commons.collections.ExtendedProperties configuration) |
boolean |
isSourceModified(org.apache.velocity.runtime.resource.Resource resource) |
public static final String ROOT
public static void copyTemplates(File templateFolder) throws IOException
templateFolder
- the template folderIOException
- if copying the templates failspublic InputStream getResourceStream(String source) throws org.apache.velocity.exception.ResourceNotFoundException
getResourceStream
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
org.apache.velocity.exception.ResourceNotFoundException
public boolean isSourceModified(org.apache.velocity.runtime.resource.Resource resource)
isSourceModified
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
public long getLastModified(org.apache.velocity.runtime.resource.Resource resource)
getLastModified
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
public void init(org.apache.commons.collections.ExtendedProperties configuration)
init
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a