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 templateIOException
boolean available(String templatePath) throws IOException
templatePath
- the path to the templateIOException
InputStream getStreamFor(String templatePath) throws IOException
InputStream
for the source of the specified template.templatePath
- the path to the templateIOException
String 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.IOException
Copyright © 2003–2016 Jamon developers. All rights reserved.