freemarker.template
Interface TemplateTransformModel
- All Superinterfaces:
- TemplateModel
- All Known Implementing Classes:
- NormalizeNewlines, TransformModel1
- public interface TemplateTransformModel
- extends TemplateModel
Transformations in a template data model must implement either this
interface or the TemplateTransformModel2
interface.
Input to the transformation is reader from a Reader
, and
written out to a PrintWriter
.
The detail messages of any TemplateModelException
s
thrown will be included as HTML comments in the output. Any
IOException
s are passed up to the caller of the template.
- Version:
- $Id: TemplateTransformModel.java,v 1.8 2003/11/16 09:56:43 run2000 Exp $
- See Also:
TemplateTransformModel2
Method Summary |
void |
transform(java.io.Reader source,
java.io.PrintWriter output)
Performs a transformation/filter on FM-Classic output. |
transform
public void transform(java.io.Reader source,
java.io.PrintWriter output)
throws java.io.IOException,
TemplateModelException
- Performs a transformation/filter on FM-Classic output.
- Parameters:
source
- the input to be transformedoutput
- the destination of the transformation