org.freecompany.util.xml.dom2sax
Class Dom2Sax

java.lang.Object
  extended by org.freecompany.util.xml.dom2sax.Dom2Sax

public class Dom2Sax
extends java.lang.Object


Field Summary
protected  org.xml.sax.ContentHandler content
           
protected  org.xml.sax.ext.LexicalHandler lexical
           
protected  org.freecompany.util.multicaster.Notification logger
           
 
Constructor Summary
Dom2Sax()
           
 
Method Summary
 void convert(org.w3c.dom.Node root)
          Converts a DOM subtree into SAX events.
 void setContentHandler(org.xml.sax.ContentHandler content)
           
 void setLexicalHandler(org.xml.sax.ext.LexicalHandler lexical)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.freecompany.util.multicaster.Notification logger

content

protected org.xml.sax.ContentHandler content

lexical

protected org.xml.sax.ext.LexicalHandler lexical
Constructor Detail

Dom2Sax

public Dom2Sax()
Method Detail

setContentHandler

public void setContentHandler(org.xml.sax.ContentHandler content)

setLexicalHandler

public void setLexicalHandler(org.xml.sax.ext.LexicalHandler lexical)

convert

public void convert(org.w3c.dom.Node root)
             throws org.xml.sax.SAXException
Converts a DOM subtree into SAX events.

Parameters:
root - the root of the DOM subtree
Throws:
org.xml.sax.SAXException - when the underlying content content does