/** * This builds a document from the supplied * XMLStreamReader. * <p> * The JDOMContent will be built by the current JDOMFactory. * * @param reader <code>XMLStreamReader</code> to read from * @return <code>Document</code> resultant Document object * @throws JDOMException when errors occur in parsing */ public Document build(XMLStreamReader reader) throws JDOMException { return process(builderfactory, reader); }