Package org.intermine.util
Class SAXParser
- java.lang.Object
-
- org.intermine.util.SAXParser
-
public final class SAXParser extends java.lang.Object
Basic SAX Parser- Author:
- Mark Woodbridge
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
parse(org.xml.sax.InputSource is, org.xml.sax.helpers.DefaultHandler handler)
Parse the an xml filestatic void
parse(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.ParserConfigurationException
Parse 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.ParserConfigurationException
Parse 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
-
-