|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.webmacro.engine.WMTemplate
org.webmacro.engine.FileTemplate
FileTemplate objects read their template data from a text file.
| Field Summary |
| Fields inherited from class org.webmacro.engine.WMTemplate |
_broker, _content, _log |
| Constructor Summary | |
FileTemplate(Broker broker,
java.io.File templateFile)
Instantiate a template based on the specified file using the default encoding from WebMacro.properties (TemplateEncoding), if not specified there then the UTF-8 encoding. |
|
FileTemplate(Broker broker,
java.io.File tmplFile,
java.lang.String encoding)
Instantiate a template based on the specified file using the specified encoding to read the template. |
|
FileTemplate(Broker broker,
java.lang.String filename)
Instantiate a template based on the specified filename using the default encoding from WebMacro.properties (TemplateEncoding), or if not specified there then the UTF-8 encoding. |
|
| Method Summary | |
java.lang.String |
getName()
Return a name for this template. |
protected java.io.Reader |
getReader()
Get the stream the template should be read from. |
java.lang.String |
toString()
Return a name for this template. |
| Methods inherited from class org.webmacro.engine.WMTemplate |
accept, evaluate, getDefaultEncoding, getMacros, getParam, getParameters, getParser, parse, setName, setParam, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public FileTemplate(Broker broker,
java.lang.String filename)
public FileTemplate(Broker broker,
java.io.File templateFile)
public FileTemplate(Broker broker,
java.io.File tmplFile,
java.lang.String encoding)
| Method Detail |
protected java.io.Reader getReader()
throws java.io.IOException
getReader in class WMTemplatejava.io.IOException - if unable to read templatepublic java.lang.String toString()
toString in class WMTemplatepublic java.lang.String getName()
WMTemplate
getName in interface TemplategetName in class WMTemplate
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||