1 17 package org.apache.excalibur.xml.dom; 18 19 import javax.xml.transform.dom.DOMResult ; 20 import javax.xml.transform.sax.TransformerHandler ; 21 22 import org.apache.excalibur.xml.sax.ContentHandlerWrapper; 23 import org.w3c.dom.Document ; 24 25 29 public class DefaultDOMHandler 30 extends ContentHandlerWrapper 31 implements DOMHandler 32 { 33 private final Document m_document; 34 35 public DefaultDOMHandler( TransformerHandler handler, 36 Document document ) 37 { 38 super( handler, handler ); 39 m_document = document; 40 handler.setResult( new DOMResult ( m_document ) ); 41 } 42 43 public Document getDocument() 44 { 45 return m_document; 46 } 47 } 48 | Popular Tags |