public class HtmlTemplate
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected TextFile |
template
Text of template.
|
| Constructor and Description |
|---|
HtmlTemplate(java.lang.String templateFileName,
java.lang.String encoding)
Create HtmlTemplate with specified template file name.
|
HtmlTemplate(java.net.URL templateURL,
java.lang.String encoding)
Create HtmlTemplate with specified template URL.
|
| Modifier and Type | Method and Description |
|---|---|
void |
outputTemplate(java.io.PrintWriter writer,
UTF8Properties templateProperties)
Substitute values in template.
|
protected TextFile template
public HtmlTemplate(java.lang.String templateFileName,
java.lang.String encoding)
templateFileName - HTML template file name.encoding - Character encoding for template.public HtmlTemplate(java.net.URL templateURL,
java.lang.String encoding)
templateURL - HTML template URL.encoding - Character encoding for template.public void outputTemplate(java.io.PrintWriter writer,
UTF8Properties templateProperties)
throws java.io.IOException
writer - Output writer.templateProperties - Properties with values to substitute
into template.java.io.IOException - If output cannot be written.