public abstract class FreeMarkerWritable extends 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 String |
getTemplateName()
Returns the name of the template to be used for a specific writable type.
|
void |
write(Writable.Context context,
Writer writer)
Writes this element to the given writer.
|
public void write(Writable.Context context, Writer writer) throws Exception
Writableprotected String getTemplateName()
*.ftl is used as template file name,
but this can be customized by overriding this method if required.null.Copyright © 2012-2015. All Rights Reserved.