freemarker.template
Interface TemplateTransformModel

All Superinterfaces:
TemplateModel
All Known Implementing Classes:
CompressLines, NormalizeNewlines

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 TemplateModelExceptions thrown will be included as HTML comments in the output. Any IOExceptions are passed up to the caller of the template.

Version:
$Id: TemplateTransformModel.java 1101 2013-04-01 04:17:32Z run2000 $
See Also:
TemplateTransformModel2

Method Summary
 void transform(java.io.Reader source, java.io.PrintWriter output)
          Performs a transformation/filter on FM-Classic output.
 
Methods inherited from interface freemarker.template.TemplateModel
isEmpty
 

Method Detail

transform

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 transformed
output - the destination of the transformation
Throws:
java.io.IOException
TemplateModelException