org.codehaus.dna.impl
Class SAXConfigurationSerializer

java.lang.Object
  extended byorg.codehaus.dna.impl.SAXConfigurationSerializer

public class SAXConfigurationSerializer
extends java.lang.Object

Utility class that serializes a Configuration object to a SAX2 compliant ContentHandler.

Version:
$Revision: 1.2 $ $Date: 2004/05/01 09:51:48 $
Author:
Peter Donald

Constructor Summary
SAXConfigurationSerializer()
           
 
Method Summary
 void serialize(Configuration configuration, org.xml.sax.ContentHandler handler)
          Serialize the configuration to as a Document to the specified ContentHandler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAXConfigurationSerializer

public SAXConfigurationSerializer()
Method Detail

serialize

public void serialize(Configuration configuration,
                      org.xml.sax.ContentHandler handler)
               throws org.xml.sax.SAXException
Serialize the configuration to as a Document to the specified ContentHandler. The serialization writes out an Element for each configuration object.

Parameters:
handler - the ContentHandler to write Configuration out to
configuration - the Configuration
Throws:
org.xml.sax.SAXException - if the handler throws an exception


Copyright © 2003-2004 Codehaus. All Rights Reserved.