/** * Parses the given stream. * * @param stream the stream to parse * @throws IOException if parsing the XML fails either due to an IO error or due to an SAXException (when * processing a malformed XML). */ public void parse(InputStream stream) throws IOException { parse(stream, null); }
}); try { reader.parse(in); } catch (IOException e) { Exceptions.handle(e);