public interface TemplateSource
org.jamon.compiler.FileTemplateSource), but
others might include storing templates in a database, or retrieving them remotely via HTTP.| Modifier and Type | Method and Description |
|---|---|
boolean |
available(String templatePath)
Determines whether the indicated template source is available.
|
String |
getExternalIdentifier(String templatePath)
Get an identifying string for the specified template.
|
InputStream |
getStreamFor(String templatePath)
Get a
InputStream for the source of the specified template. |
TemplateLocation |
getTemplateLocation(String templatePath) |
long |
lastModified(String templatePath)
Determines when the indicated template was last modified, in ms since the epoch.
|
void |
loadProperties(String path,
Properties properties)
Load any properties that might be used to influence the processing of templates within the
specified directory.
|
long lastModified(String templatePath) throws IOException
templatePath - the path to the templateIOExceptionboolean available(String templatePath) throws IOException
templatePath - the path to the templateIOExceptionInputStream getStreamFor(String templatePath) throws IOException
InputStream for the source of the specified template.templatePath - the path to the templateIOExceptionString getExternalIdentifier(String templatePath)
templatePath - the path to the templateTemplateLocation getTemplateLocation(String templatePath)
void loadProperties(String path, Properties properties) throws IOException
path - The directory to to look forproperties - The Properties instance to add any found properties to.IOExceptionCopyright © 2003–2021 Jamon developers. All rights reserved.