|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.templat.Templat
public class Templat
TemplAT is a template processor, used in conjunction with Java.
Templates contain processing instructions within at-signs, thus
the name TemplAT. Processing instructions include if-then-else,
loops, includes (with parameters), and (Java) method calls.
| Constructor Summary | |
|---|---|
Templat(URL url)
Initializes this Templat to read from the
given URL. |
|
| Method Summary | |
|---|---|
URL |
getURL()
Gets the URL of this Templat (as
passed into the constructor). |
void |
render(Appendable appendTo,
Object... rArg)
Renders this template. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Templat(URL url)
Templat to read from the
given URL. The contents of the URL
are assumed to be in UTF-8 format.
url - the URL to read the template from (UTF-8)| Method Detail |
|---|
public URL getURL()
URL of this Templat (as
passed into the constructor).
URL.
public void render(Appendable appendTo,
Object... rArg)
throws TemplateLexingException,
TemplateParsingException,
IOException
Appendable.
appendTo - the Appendable to append the result torArg - optional argument(s) to pass to the template
TemplateLexingException
TemplateParsingException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||