use of org.jdom.UncheckedJDOMFactory 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;
}
Aggregations