public abstract class FreeMarkerWritable extends java.lang.Object implements Writable
Writable which uses the FreeMarker template engine to generate the output.Writable.Context| Constructor and Description |
|---|
FreeMarkerWritable() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getTemplateName()
Returns the name of the template to be used for a specific writable type.
|
void |
write(Writable.Context context,
java.io.Writer writer)
Writes this element to the given writer.
|
public void write(Writable.Context context, java.io.Writer writer) throws java.lang.Exception
Writableprotected java.lang.String getTemplateName()
*.ftl is used as template file name,
but this can be customized by overriding this method if required.null.Copyright © 2012-2014. All Rights Reserved.