freemarker.template
Interface TemplateTransformModel2

All Superinterfaces:
TemplateModel
All Known Implementing Classes:
CompressWhitespace, FreeMarkerToHtml, HtmlEscape, JavaToHtml, LegacyCompress, RemoveBlankLines, TransformPipeline, XmlEscape

public interface TemplateTransformModel2
extends TemplateModel

Transformations in a template data model must implement either this interface or the TemplateTransformModel interface. Input to the transformation is reader from a Reader, and written out to a Writer.

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.

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

Method Summary
 void transform(java.io.Reader source, java.io.Writer 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.Writer 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