freemarker.template
Interface TemplateTransformModel2

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

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,v 1.3 2003/11/16 09:56:43 run2000 Exp $
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

public 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