/** * Parse from <code>InputStream</code>. * @param stream the stream * @return the document * @throws ParsingException in case of an XML violation * @throws IOException if IO goes wrang * @see nu.xom.Builder#build(java.io.InputStream) */ @Override public Document build(InputStream stream) throws ParsingException, ValidityException, IOException { return build(new InputSource(stream)); }
/** * Parse from <code>Reader</code>. * @param stream the reader * @return the document * @throws ParsingException in case of an XML violation * @throws IOException if IO goes wrang * @see nu.xom.Builder#build(java.io.Reader) */ @Override public Document build(Reader stream) throws ParsingException, ValidityException, IOException { return build(new InputSource(stream)); }
/** * Parse from URI. * @param uri the URI of the document * @return the document * @throws ParsingException in case of an XML violation * @throws IOException if IO goes wrang * @see nu.xom.Builder#build(java.lang.String) */ @Override public Document build(String uri) throws ParsingException, ValidityException, IOException { return build(new InputSource(uri)); }
/** * Parse from URI. * @param uri the URI of the document * @return the document * @throws ParsingException in case of an XML violation * @throws IOException if IO goes wrang * @see nu.xom.Builder#build(java.lang.String) */ @Override public Document build(String uri) throws ParsingException, ValidityException, IOException { return build(new InputSource(uri)); }
/** * Parse from URI. * @param uri the URI of the document * @return the document * @throws ParsingException in case of an XML violation * @throws IOException if IO goes wrang * @see nu.xom.Builder#build(java.lang.String) */ @Override public Document build(String uri) throws ParsingException, ValidityException, IOException { return build(new InputSource(uri)); }
/** * Parse from <code>InputStream</code>. * @param stream the stream * @return the document * @throws ParsingException in case of an XML violation * @throws IOException if IO goes wrang * @see nu.xom.Builder#build(java.io.InputStream) */ @Override public Document build(InputStream stream) throws ParsingException, ValidityException, IOException { return build(new InputSource(stream)); }
/** * Parse from <code>Reader</code>. * @param stream the reader * @return the document * @throws ParsingException in case of an XML violation * @throws IOException if IO goes wrang * @see nu.xom.Builder#build(java.io.Reader) */ @Override public Document build(Reader stream) throws ParsingException, ValidityException, IOException { return build(new InputSource(stream)); }
/** * Parse from <code>String</code>. * @param content the HTML source as string * @param uri the base URI * @return the document * @throws ParsingException in case of an XML violation * @throws IOException if IO goes wrang * @see nu.xom.Builder#build(java.lang.String, java.lang.String) */ @Override public Document build(String content, String uri) throws ParsingException, ValidityException, IOException { return build(new StringReader(content), uri); }
/** * Parse from <code>InputStream</code>. * @param stream the stream * @return the document * @throws ParsingException in case of an XML violation * @throws IOException if IO goes wrang * @see nu.xom.Builder#build(java.io.InputStream) */ @Override public Document build(InputStream stream) throws ParsingException, ValidityException, IOException { return build(new InputSource(stream)); }
/** * Parse from <code>String</code>. * @param content the HTML source as string * @param uri the base URI * @return the document * @throws ParsingException in case of an XML violation * @throws IOException if IO goes wrang * @see nu.xom.Builder#build(java.lang.String, java.lang.String) */ @Override public Document build(String content, String uri) throws ParsingException, ValidityException, IOException { return build(new StringReader(content), uri); }
/** * Parse from <code>Reader</code>. * @param stream the reader * @return the document * @throws ParsingException in case of an XML violation * @throws IOException if IO goes wrang * @see nu.xom.Builder#build(java.io.Reader) */ @Override public Document build(Reader stream) throws ParsingException, ValidityException, IOException { return build(new InputSource(stream)); }
/** * Parse from <code>String</code>. * @param content the HTML source as string * @param uri the base URI * @return the document * @throws ParsingException in case of an XML violation * @throws IOException if IO goes wrang * @see nu.xom.Builder#build(java.lang.String, java.lang.String) */ @Override public Document build(String content, String uri) throws ParsingException, ValidityException, IOException { return build(new StringReader(content), uri); }
/** * Parse from <code>InputStream</code>. * @param stream the stream * @param uri the base URI * @return the document * @throws ParsingException in case of an XML violation * @throws IOException if IO goes wrang * @see nu.xom.Builder#build(java.io.InputStream, java.lang.String) */ @Override public Document build(InputStream stream, String uri) throws ParsingException, ValidityException, IOException { InputSource is = new InputSource(stream); is.setSystemId(uri); return build(is); }
/** * Parse from <code>File</code>. * @param file the file * @return the document * @throws ParsingException in case of an XML violation * @throws IOException if IO goes wrang * @see nu.xom.Builder#build(java.io.File) */ @Override public Document build(File file) throws ParsingException, ValidityException, IOException { return build(new FileInputStream(file), file.toURI().toASCIIString()); }
/** * Parse from <code>File</code>. * @param file the file * @return the document * @throws ParsingException in case of an XML violation * @throws IOException if IO goes wrang * @see nu.xom.Builder#build(java.io.File) */ @Override public Document build(File file) throws ParsingException, ValidityException, IOException { return build(new FileInputStream(file), file.toURI().toASCIIString()); }
/** * Parse from <code>File</code>. * @param file the file * @return the document * @throws ParsingException in case of an XML violation * @throws IOException if IO goes wrang * @see nu.xom.Builder#build(java.io.File) */ @Override public Document build(File file) throws ParsingException, ValidityException, IOException { return build(new FileInputStream(file), file.toURI().toASCIIString()); }
/** * Parse from <code>Reader</code>. * @param stream the reader * @param uri the base URI * @return the document * @throws ParsingException in case of an XML violation * @throws IOException if IO goes wrang * @see nu.xom.Builder#build(java.io.Reader, java.lang.String) */ @Override public Document build(Reader stream, String uri) throws ParsingException, ValidityException, IOException { InputSource is = new InputSource(stream); is.setSystemId(uri); return build(is); }
/** * Parse from <code>InputStream</code>. * @param stream the stream * @param uri the base URI * @return the document * @throws ParsingException in case of an XML violation * @throws IOException if IO goes wrang * @see nu.xom.Builder#build(java.io.InputStream, java.lang.String) */ @Override public Document build(InputStream stream, String uri) throws ParsingException, ValidityException, IOException { InputSource is = new InputSource(stream); is.setSystemId(uri); return build(is); }
/** * Parse from <code>Reader</code>. * @param stream the reader * @param uri the base URI * @return the document * @throws ParsingException in case of an XML violation * @throws IOException if IO goes wrang * @see nu.xom.Builder#build(java.io.Reader, java.lang.String) */ @Override public Document build(Reader stream, String uri) throws ParsingException, ValidityException, IOException { InputSource is = new InputSource(stream); is.setSystemId(uri); return build(is); }
/** * Parse from <code>InputStream</code>. * @param stream the stream * @param uri the base URI * @return the document * @throws ParsingException in case of an XML violation * @throws IOException if IO goes wrang * @see nu.xom.Builder#build(java.io.InputStream, java.lang.String) */ @Override public Document build(InputStream stream, String uri) throws ParsingException, ValidityException, IOException { InputSource is = new InputSource(stream); is.setSystemId(uri); return build(is); }