org.apache.cocoon.formatter
Class HTMLFormatter
java.lang.Object
|
+--org.apache.cocoon.formatter.AbstractFormatter
|
+--org.apache.cocoon.formatter.HTMLFormatter
- All Implemented Interfaces:
- Configurable, Formatter, Status
- public class HTMLFormatter
- extends AbstractFormatter
This formatter is used to serialize HTML content. The difference between
this formatter and the XMLFormatter is that while the XML formatter doesn't
have any semantic information about the document type being formatted,
this class handles tags like <br/> and transforms them to
HTML that non-XML-aware browsers can understand. Note that this creates
markap that is non-well-formed XML. If you want to be able to send HTML
code to old-browser but still create well-formed XML, use the XHTMLFormatter
instead.
- Version:
- $Revision: 1.6 $ $Date: 2000/04/20 22:12:04 $
- Author:
- Stefano Mazzocchi
Method Summary |
void |
format(org.w3c.dom.Document document,
java.io.Writer writer,
java.util.Dictionary p)
Prints the give document into a page. |
void |
init(Configurations conf)
Initialize the class by passing its configurations. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTMLFormatter
public HTMLFormatter()
init
public void init(Configurations conf)
- Description copied from interface:
Configurable
- Initialize the class by passing its configurations.
- Overrides:
init
in class AbstractFormatter
format
public void format(org.w3c.dom.Document document,
java.io.Writer writer,
java.util.Dictionary p)
throws java.lang.Exception
- Description copied from interface:
Formatter
- Prints the give document into a page.
Copyright © 1999-2000 Apache Software Foundation. All Rights Reserved.