Logo Search packages:      
Sourcecode: jardiff version File versions  Download package

org::osjava::jardiff::DOMDiffHandler::DOMDiffHandler (  )  throws DiffException [inline]

Create a new DOMDiffHandler which writes to System.out

Exceptions:
DiffException when there is an underlying exception, e.g. writing to a file caused an IOException

Definition at line 98 of file DOMDiffHandler.java.

References currentNode, doc, result, and transformer.

                                                 {
        try {
            TransformerFactory tf = TransformerFactory.newInstance();
            this.transformer = tf.newTransformer();
            this.result = new StreamResult(System.out);
            this.currentNode = null;
            DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
            dbf.setNamespaceAware(true);
            DocumentBuilder db = dbf.newDocumentBuilder();
            this.doc = db.newDocument();
        } catch (TransformerConfigurationException tce) {
            throw new DiffException(tce);
        } catch (ParserConfigurationException pce) {
            throw new DiffException(pce);
        }
    }


Generated by  Doxygen 1.6.0   Back to index