Package org.intermine.metadata
Class SAXParser
- java.lang.Object
-
- org.intermine.metadata.SAXParser
-
public final class SAXParser extends java.lang.ObjectBasic SAX Parser
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidparse(org.xml.sax.InputSource is, org.xml.sax.helpers.DefaultHandler handler)Parse the an xml filestatic voidparse(org.xml.sax.InputSource is, org.xml.sax.helpers.DefaultHandler handler, boolean validate)Parse the an xml file
-
-
-
Method Detail
-
parse
public static void parse(org.xml.sax.InputSource is, org.xml.sax.helpers.DefaultHandler handler) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationExceptionParse the an xml file- Parameters:
is- the inputsource to parsehandler- the SAX event handler to use- Throws:
org.xml.sax.SAXException- if an error occurs during parsingjava.io.IOException- if an error occurs reading from the InputSourcejavax.xml.parsers.ParserConfigurationException- if there is an error in the config
-
parse
public static void parse(org.xml.sax.InputSource is, org.xml.sax.helpers.DefaultHandler handler, boolean validate) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationExceptionParse the an xml file- Parameters:
is- the inputsource to parsehandler- the SAX event handler to usevalidate- if true, validate before parsing- Throws:
org.xml.sax.SAXException- if an error occurs during parsingjava.io.IOException- if an error occurs reading from the InputSourcejavax.xml.parsers.ParserConfigurationException- if there is an error in the config
-
-