/** * Document parser. * @param source Source content stream to be parsed. * @return W3C ownerDocument. * @throws SAXException Unable to parse the content. * @throws IOException Unable to read the input stream. */ public Document parse(Source source) throws IOException, SAXException { DOMBuilder contentHandler = new DOMBuilder(getExecContext()); parse(source, contentHandler); return contentHandler.getDocument(); }
/** * Document parser. * @param source Source content stream to be parsed. * @return W3C ownerDocument. * @throws SAXException Unable to parse the content. * @throws IOException Unable to read the input stream. */ public Document parse(Source source) throws IOException, SAXException { DOMBuilder contentHandler = new DOMBuilder(getExecContext()); parse(source, contentHandler); return contentHandler.getDocument(); }
/** * Document parser. * @param source Source content stream to be parsed. * @return W3C ownerDocument. * @throws SAXException Unable to parse the content. * @throws IOException Unable to read the input stream. */ public Document parse(Source source) throws IOException, SAXException { DOMBuilder contentHandler = new DOMBuilder(getExecContext()); parse(source, contentHandler); return contentHandler.getDocument(); }
/** * Document parser. * @param source Source content stream to be parsed. * @return W3C ownerDocument. * @throws SAXException Unable to parse the content. * @throws IOException Unable to read the input stream. */ public Document parse(Source source) throws IOException, SAXException { DOMBuilder contentHandler = new DOMBuilder(getExecContext()); parse(source, contentHandler); return contentHandler.getDocument(); }