/** Starts parsing document - if you have document`s InputStream * @param validate * @param is document`s InputStream * @throws ParserConfigurationException * @throws IOException * @throws SAXException */ public void parseXML(InputStream is, boolean validate) throws IOException, SAXException, ParserConfigurationException, FactoryConfigurationError { InputSource iSource = new InputSource(is); XMLReader parser = getParser(validate); parser.parse(iSource); }
/** Starts parsing document, that can be localized by means of uri parameter * @param validate * @param uri adress of document, that will be parsed * @throws ParserConfigurationException * @throws IOException * @throws SAXException */ public void parseXML(String uri, boolean validate) throws IOException, SAXException, ParserConfigurationException, FactoryConfigurationError { XMLReader parser = getParser(validate); parser.parse(uri); }
/** Starts parsing document - if you have document`s InputStream * @param validate * @param is document`s InputStream * @throws ParserConfigurationException * @throws IOException * @throws SAXException */ public void parseXML(InputStream is, boolean validate) throws IOException, SAXException, ParserConfigurationException, FactoryConfigurationError { InputSource iSource = new InputSource(is); Parser parser = getParser(validate); parser.parse(iSource); }
/** Starts parsing document - if you have document`s InputStream * @param validate * @param is document`s InputStream * @throws ParserConfigurationException * @throws IOException * @throws SAXException */ public void parseXML(InputStream is, boolean validate) throws IOException, SAXException, ParserConfigurationException, FactoryConfigurationError { InputSource iSource = new InputSource(is); Parser parser = getParser(validate); parser.parse(iSource); }
/** Starts parsing document, that can be localized by means of uri parameter * @param validate * @param uri adress of document, that will be parsed * @throws ParserConfigurationException * @throws IOException * @throws SAXException */ public void parseXML(String uri, boolean validate) throws IOException, SAXException, ParserConfigurationException, FactoryConfigurationError { Parser parser = getParser(validate); parser.parse(uri); }
/** Starts parsing document, that can be localized by means of uri parameter * @param validate * @param uri adress of document, that will be parsed * @throws ParserConfigurationException * @throws IOException * @throws SAXException */ public void parseXML(String uri, boolean validate) throws IOException, SAXException, ParserConfigurationException, FactoryConfigurationError { Parser parser = getParser(validate); parser.parse(uri); }