com.opensymphony.provider.xmlprinter
Class DefaultXMLPrinterProvider

java.lang.Object
  |
  +--com.opensymphony.provider.xmlprinter.DefaultXMLPrinterProvider
All Implemented Interfaces:
Provider, XMLPrinterProvider

public class DefaultXMLPrinterProvider
extends java.lang.Object
implements XMLPrinterProvider

XMLPrinterProvider implementation with no dependencies to other printers. Uses very simple recursive walk down tree writing as it goes. Lacks many features (including support for namespaces), normalization, and flexible formatting options, but it's fast, very small and standalone.

Version:
$Revision: 1.1 $
Author:
Joe Walnes

Constructor Summary
DefaultXMLPrinterProvider()
           
 
Method Summary
 void destroy()
          Shutdown Provider.
 void init()
          Startup Provider.
 void print(org.w3c.dom.Document doc, java.io.Writer out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultXMLPrinterProvider

public DefaultXMLPrinterProvider()
Method Detail

init

public void init()
          throws ProviderConfigurationException
Description copied from interface: Provider
Startup Provider.
Specified by:
init in interface Provider
Following copied from interface: com.opensymphony.provider.Provider
Throws:
ProviderConfigurationException - thrown if error in startup or configuration.

destroy

public void destroy()
Description copied from interface: Provider
Shutdown Provider.
Specified by:
destroy in interface Provider

print

public void print(org.w3c.dom.Document doc,
                  java.io.Writer out)
           throws java.io.IOException
Specified by:
print in interface XMLPrinterProvider

See www.opensymphony.com for more information.