org.apache.cocoon.printer
Class AbstractPrinter

java.lang.Object
  |
  +--org.apache.cocoon.printer.AbstractPrinter
Direct Known Subclasses:
HTMLPrinter, XMLPrinter

public abstract class AbstractPrinter
extends java.lang.Object
implements Printer, Configurable

This class implements a printer that print the DOM tree using the HTML syntax.

Version:
$Revision: 1.1 $ $Date: 1999/03/22 23:50:08 $
Author:
Stefano Mazzocchi

Field Summary
(package private)  int indentSpaces
           
(package private)  int lineWidth
           
 
Constructor Summary
AbstractPrinter()
           
 
Method Summary
 void init(Configurations conf)
          Initialize the printer.
abstract  void print(org.w3c.dom.Document document, java.io.Writer out)
          Prints the DOM tree.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

lineWidth

int lineWidth

indentSpaces

int indentSpaces
Constructor Detail

AbstractPrinter

public AbstractPrinter()
Method Detail

init

public void init(Configurations conf)
Initialize the printer.
Specified by:
init in interface Configurable

print

public abstract void print(org.w3c.dom.Document document,
                           java.io.Writer out)
                    throws java.io.IOException
Prints the DOM tree.
Specified by:
print in interface Printer

Copyright (c) 1998 The Java Apache Project