All Packages Class Hierarchy This Package Previous Next Index
Class org.webmacro.engine.FileTemplate
java.lang.Object
|
+----org.webmacro.engine.Template
|
+----org.webmacro.engine.FileTemplate
- public class FileTemplate
- extends Template
FileTemplate objects read their template data from a text file.
-
FileTemplate(File)
- Instantiate a template based on the specified file
-
FileTemplate(String)
- Instantiate a template based on the specified filename
-
getReader()
- Get the stream the template should be read from.
-
main(String[])
- Simple test
-
toString()
- Return a name for this template.
FileTemplate
public FileTemplate(String filename)
- Instantiate a template based on the specified filename
FileTemplate
public FileTemplate(File templateFile)
- Instantiate a template based on the specified file
getReader
protected Reader getReader() throws IOException
- Get the stream the template should be read from. Parse will
call this method in order to locate a stream.
- Overrides:
- getReader in class Template
toString
public String toString()
- Return a name for this template. For example, if the template reads
from a file you might want to mention which it is--will be used to
produce error messages describing which template had a problem.
- Overrides:
- toString in class Template
main
public static void main(String arg[])
- Simple test
All Packages Class Hierarchy This Package Previous Next Index