Expresso 5-6

com.jcorporate.expresso.kernel.management
Interface DOMWriter

All Known Implementing Classes:
TraxDOMWriter, XercesDOMWriter, XMLPrinter

public interface DOMWriter

This interface is the link between an XML DOM and the file it should serialize to.

Version:
$Revision: 1.6 $ on $Date: 2004/11/17 20:48:17 $
Author:
Michael Rimov

Method Summary
 String getRequiredClass()
          Retrieve a class that must exist in the classpath for this to work.
 void saveDocument(OutputStream os, org.w3c.dom.Document document)
          Override to actually save a DOM document to the output stream via whatever method you desire
 

Method Detail

saveDocument

public void saveDocument(OutputStream os,
                         org.w3c.dom.Document document)
                  throws ExpressoRuntimeException
Override to actually save a DOM document to the output stream via whatever method you desire

Parameters:
os - The output stream to save to
document - the DOM document representing the config.
Throws:
ExpressoRuntimeException - if there's an error saving the file.

getRequiredClass

public String getRequiredClass()
Retrieve a class that must exist in the classpath for this to work. Used as a sanity check to make sure the appropriate jars are installed.

Returns:
java.lang.String a name of a class

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.