freemarker.template.utility
Class FreeMarkerToHtml

java.lang.Object
  |
  +--freemarker.template.utility.FreeMarkerToHtml
All Implemented Interfaces:
TemplateModel, TemplateTransformModel

public class FreeMarkerToHtml
extends java.lang.Object
implements TemplateTransformModel

A FreeMarker transformer that performs syntax colouring of FreeMarker source files, and outputs the results in HTML. The HTML is HTML 3.2 compliant, though later transitional DTDs should have no problems with this code.

The transformation uses the Jakarta ORO regular expression library, available from the Jakarta Apache web site.

Version:
$Id: FreeMarkerToHtml.java,v 1.14 2002/04/21 13:49:31 revusky Exp $
Author:
Nicholas Cull

Constructor Summary
FreeMarkerToHtml()
          Creates new FreeMarkerToHtml
 
Method Summary
 boolean isEmpty()
           
 void transform(java.io.Reader source, java.io.Writer output)
          Performs a transformation/filter on FreeMarker output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FreeMarkerToHtml

public FreeMarkerToHtml()
Creates new FreeMarkerToHtml
Method Detail

transform

public void transform(java.io.Reader source,
                      java.io.Writer output)
               throws TemplateModelException,
                      java.io.IOException
Performs a transformation/filter on FreeMarker output.
Specified by:
transform in interface TemplateTransformModel
Parameters:
source - the input to be transformed
output - the destination of the transformation

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface TemplateModel
Returns:
true if this object is empty.