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