|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TemplateSource
An interface representing a "repository" of template sources. One
obvious implementation would be a file-system based implementation
(e.g. FileTemplateSource), but others might include storing
templates in a database, or retrieving them remotely via HTTP.
| Method Summary | |
|---|---|
boolean |
available(String p_templatePath)
Determines whether the indicated template source is available. |
String |
getExternalIdentifier(String p_templatePath)
Get an identifying string for the specified template. |
InputStream |
getStreamFor(String p_templatePath)
Get a InputStream for the source of the specified template. |
TemplateLocation |
getTemplateLocation(String p_templatePath)
|
long |
lastModified(String p_templatePath)
Determines when the indicated template was last modified, in ms since the epoch. |
void |
loadProperties(String p_path,
Properties p_properties)
Load any properties that might be used to influence the processing of templates within the specified directory. |
| Method Detail |
|---|
long lastModified(String p_templatePath)
throws IOException
p_templatePath - the path to the template
IOException
boolean available(String p_templatePath)
throws IOException
p_templatePath - the path to the template
IOException
InputStream getStreamFor(String p_templatePath)
throws IOException
InputStream for the source of the specified template.
p_templatePath - the path to the template
IOExceptionString getExternalIdentifier(String p_templatePath)
p_templatePath - the path to the template
TemplateLocation getTemplateLocation(String p_templatePath)
void loadProperties(String p_path,
Properties p_properties)
throws IOException
p_path - The directory to to look forp_properties - The Properties instance to add any found
properties to.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||