public class FileTemplateSource extends Object implements org.jamon.api.TemplateSource
TemplateSource which retrieves templates from the
filesystem location under a specified root directory. By default, templates are expected to have
extens ".jamon"; this can be overridden.| Constructor and Description |
|---|
FileTemplateSource(File templateSourceDir)
Construct a FileTemplateSource, using the default extension ".jamon".
|
FileTemplateSource(File templateSourceDir,
String extension)
Construct a FileTemplateSource, specifying a filename extension for templates.
|
FileTemplateSource(String templateSourceDir)
Construct a FileTemplateSource
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
available(String templatePath) |
String |
getExternalIdentifier(String templatePath) |
InputStream |
getStreamFor(String templatePath) |
org.jamon.api.TemplateLocation |
getTemplateLocation(String templatePath) |
long |
lastModified(String templatePath) |
void |
loadProperties(String path,
Properties properties) |
public FileTemplateSource(String templateSourceDir)
templateSourceDir - the source directorypublic FileTemplateSource(File templateSourceDir)
templateSourceDir - the source directorypublic FileTemplateSource(File templateSourceDir, String extension)
templateSourceDir - the source directoryextension - the filename extension for templatespublic long lastModified(String templatePath)
lastModified in interface org.jamon.api.TemplateSourcepublic boolean available(String templatePath)
available in interface org.jamon.api.TemplateSourcepublic InputStream getStreamFor(String templatePath) throws IOException
getStreamFor in interface org.jamon.api.TemplateSourceIOExceptionpublic String getExternalIdentifier(String templatePath)
getExternalIdentifier in interface org.jamon.api.TemplateSourcepublic org.jamon.api.TemplateLocation getTemplateLocation(String templatePath)
getTemplateLocation in interface org.jamon.api.TemplateSourcepublic void loadProperties(String path, Properties properties) throws IOException
loadProperties in interface org.jamon.api.TemplateSourceIOExceptionCopyright © 2003–2015 Jamon developers. All rights reserved.