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.


Constructor Index

 o FileTemplate(File)
Instantiate a template based on the specified file
 o FileTemplate(String)
Instantiate a template based on the specified filename

Method Index

 o getReader()
Get the stream the template should be read from.
 o main(String[])
Simple test
 o toString()
Return a name for this template.

Constructors

 o FileTemplate
 public FileTemplate(String filename)
Instantiate a template based on the specified filename

 o FileTemplate
 public FileTemplate(File templateFile)
Instantiate a template based on the specified file

Methods

 o 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
 o 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
 o main
 public static void main(String arg[])
Simple test


All Packages  Class Hierarchy  This Package  Previous  Next  Index