|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.clapper.curn.output.freemarker.CurnTemplateLoader
public class CurnTemplateLoader
| Method Summary | |
|---|---|
void |
closeTemplateSource(java.lang.Object templateSource)
Closes the template source. |
java.lang.Object |
findTemplateSource(java.lang.String name)
Finds the object that acts as the source of the template with the given name. |
long |
getLastModified(java.lang.Object templateSource)
Returns the time of last modification of the specified template source. |
java.io.Reader |
getReader(java.lang.Object templateSource,
java.lang.String encoding)
Returns the character stream of a template represented by the specified template source. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public java.lang.Object findTemplateSource(java.lang.String name)
throws java.io.IOException
getLastModified(Object) or
getReader(Object, String).
findTemplateSource in interface freemarker.cache.TemplateLoadername - the name of the template, already localized and normalized
getLastModified(Object)
and getReader(Object, String). Null will be returned
if the source for the template can not be found.
java.io.IOException - on errorpublic long getLastModified(java.lang.Object templateSource)
findTemplateSource(String).
getLastModified in interface freemarker.cache.TemplateLoadertemplateSource - an object representing a template source,
obtained through a prior call to
findTemplateSource(String).
public java.io.Reader getReader(java.lang.Object templateSource,
java.lang.String encoding)
throws java.io.IOException
getLastModified(java.lang.Object)
if it is determined that a cached copy of the template is unavailable
or stale.
getReader in interface freemarker.cache.TemplateLoadertemplateSource - an object representing a template source, obtained
through a prior call to
findTemplateSource(String).encoding - the character encoding used to translate source
bytes to characters.
java.io.IOException - if an I/O error occurs while accessing the stream.
public void closeTemplateSource(java.lang.Object templateSource)
throws java.io.IOException
findTemplateSource(String).
closeTemplateSource in interface freemarker.cache.TemplateLoadertemplateSource - the template source that should be closed.
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||