|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for caches that store compiled templates. Note that
a Template
must be associated with an instance of
TemplateCache
for the <include...> mechanism
to work.
FileTemplateCache
Method Summary | |
void |
clear()
Clears the cache. |
Template |
getTemplate(java.lang.String name)
Retrieves a template from the cache. |
Template |
getTemplate(java.lang.String name,
java.util.Locale locale)
Retrieves a template corresponding to the name and locale. |
Template |
getTemplate(java.lang.String name,
java.util.Locale locale,
java.lang.String encoding)
Retrieves a template corresponding to the name and locale. |
Template |
getTemplate(java.lang.String name,
java.lang.String encoding)
retrieves a file of the given name with the given encoding. |
void |
outputRawFile(java.lang.String filename,
java.lang.String encoding,
java.io.Writer out)
Simply outputs the given file from the cache without any template processing. |
Method Detail |
public Template getTemplate(java.lang.String name) throws java.io.IOException
name
- a string uniquely identifying the template.public Template getTemplate(java.lang.String name, java.util.Locale locale) throws java.io.IOException
public Template getTemplate(java.lang.String name, java.lang.String encoding) throws java.io.IOException
public Template getTemplate(java.lang.String name, java.util.Locale locale, java.lang.String encoding) throws java.io.IOException
public void outputRawFile(java.lang.String filename, java.lang.String encoding, java.io.Writer out) throws java.io.IOException
public void clear()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |