Search in sources :

Example 1 with JDOMFactory

use of org.jdom.JDOMFactory in project cxf by apache.

the class StaxBuilder method buildInternal.

private Document buildInternal(XMLStreamReader r) throws XMLStreamException {
    /*
         * Should we do sanity checking to see that r is positioned at
         * beginning in the non-mid-stream case?
         */
    JDOMFactory f = factory;
    if (f == null) {
        f = new UncheckedJDOMFactory();
    }
    Document doc = f.document(null);
    buildTree(f, r, doc);
    return doc;
}
Also used : UncheckedJDOMFactory(org.jdom.UncheckedJDOMFactory) JDOMFactory(org.jdom.JDOMFactory) Document(org.jdom.Document) UncheckedJDOMFactory(org.jdom.UncheckedJDOMFactory)

Aggregations

Document (org.jdom.Document)1 JDOMFactory (org.jdom.JDOMFactory)1 UncheckedJDOMFactory (org.jdom.UncheckedJDOMFactory)1