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

org::osjava::jardiff::DOMDiffHandler::DOMDiffHandler ( Transformer  transformer,
Result  result 
) throws DiffException [inline]

Create a new DOMDiffHandler with the specified Transformer and Result. This method allows the user to choose what they are going to do with the output in a flexible manner, allowing a stylesheet to be specified and some result object.

Parameters:
transformer The transformer to transform the output with.
result Where to put the result.

Definition at line 124 of file DOMDiffHandler.java.

References currentNode, doc, result, and transformer.

    {
        try {
            this.transformer = transformer;
            this.result = result;
            this.currentNode = null;
            DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
            dbf.setNamespaceAware(true);
            DocumentBuilder db = dbf.newDocumentBuilder();
            this.doc = db.newDocument();
        } catch (ParserConfigurationException pce) {
            throw new DiffException(pce);
        }
    }


Generated by  Doxygen 1.6.0   Back to index