Expresso 5-6

com.jcorporate.expresso.kernel.management
Class XercesDOMWriter

java.lang.Object
  extended bycom.jcorporate.expresso.kernel.management.XercesDOMWriter
All Implemented Interfaces:
DOMWriter

public class XercesDOMWriter
extends Object
implements DOMWriter

This class writes the DOM structures to a file using specific Xerces capabilies. If you cannot use Xerces, then you'll need a TRAX compliant XSL parser and use the TraxDOMWriter supplied class instead.

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

Constructor Summary
XercesDOMWriter()
           
 
Method Summary
 String getRequiredClass()
          Retrieve a class that must exist in the classpath for this to work.
protected  boolean isXercesInstalled()
          Checks to see if Xerces classes are available via the classpath
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XercesDOMWriter

public XercesDOMWriter()
Method Detail

isXercesInstalled

protected boolean isXercesInstalled()
Checks to see if Xerces classes are available via the classpath

Returns:
true if Xerces appears to be installed.

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.

Specified by:
getRequiredClass in interface DOMWriter
Returns:
java.lang.String: ...xerces.parsers.SAXParer

saveDocument

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

Specified by:
saveDocument in interface DOMWriter
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.

Expresso 5-6

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