org.apache.cocoon.formatter
Interface Formatter

All Known Implementing Classes:
OpenXMLFormatter, XSLPFormatter, FOPFormatter

public interface Formatter

This class must be implemented by the printers that format a DOM tree into streams.

Version:
$Revision: 1.2 $ $Date: 1999/10/22 22:17:51 $
Author:
Stefano Mazzocchi

Method Summary
 void format(org.w3c.dom.Document document, java.io.Writer writer, java.util.Dictionary parameters)
          Prints the give document into a page.
 java.lang.String getMIMEType()
          Returns the MIME type used by this formatter for output.
 

Method Detail

format

public void format(org.w3c.dom.Document document,
                   java.io.Writer writer,
                   java.util.Dictionary parameters)
            throws java.lang.Exception
Prints the give document into a page.

getMIMEType

public java.lang.String getMIMEType()
Returns the MIME type used by this formatter for output.


Copyright 1999 Java Apache Project. All Rights Reserved.