org.apache.fop.util
Class DOM2SAX
java.lang.Object
org.apache.fop.util.DOM2SAX
public class DOM2SAX
extends java.lang.Object
Helper class that produces a SAX stream from a DOM Document.
Part of the code here copied and adapted from Apache Xalan-J,
src/org/apache/xalan/xsltc/trax/DOM2SAX.java
DOM2SAX(ContentHandler handler) - Main constructor
|
void | writeDocument(Document doc, boolean fragment) - Writes the given document using the given ContentHandler.
|
DOM2SAX
public DOM2SAX(ContentHandler handler)
Main constructor
handler
- the ContentHandler to send SAX events to
writeDocument
public void writeDocument(Document doc,
boolean fragment)
throws SAXException
Writes the given document using the given ContentHandler.
doc
- DOM documentfragment
- if false no startDocument() and endDocument() calls are issued.
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.