|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object freemarker.ext.misc.JavaToHtml
public final class JavaToHtml
A FM-Classic transformer that performs syntax colouring of Java 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.
Constructor Summary | |
---|---|
JavaToHtml()
Creates new JavaToHtml |
Method Summary | |
---|---|
boolean |
isEmpty()
Is the object empty? |
void |
transform(java.io.Reader source,
java.io.Writer output)
Performs a transformation/filter on FM-Classic output. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaToHtml()
Method Detail |
---|
public void transform(java.io.Reader source, java.io.Writer output) throws java.io.IOException, TemplateModelException
transform
in interface TemplateTransformModel2
source
- the input to be transformedoutput
- the destination of the transformation
java.io.IOException
TemplateModelException
public boolean isEmpty()
isEmpty
in interface TemplateModel
false
, to indicate this object is not empty
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |