Package ghidra.xml
Class XmlPullParserFactory
- java.lang.Object
-
- ghidra.xml.XmlPullParserFactory
-
public class XmlPullParserFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description XmlPullParserFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XmlPullParser
create(ResourceFile file, org.xml.sax.ErrorHandler errHandler, boolean validate)
Constructs a new parser using the specified XML file.static XmlPullParser
create(java.io.File file, org.xml.sax.ErrorHandler errHandler, boolean validate)
Constructs a new parser using the specified XML file.static XmlPullParser
create(java.io.InputStream input, java.lang.String inputName, org.xml.sax.ErrorHandler errHandler, boolean validate)
Constructs a new parser using the specified stream and name.static XmlPullParser
create(java.lang.String input, java.lang.String inputName, org.xml.sax.ErrorHandler errHandler, boolean validate)
Constructs a new parser using the specified XML file.static void
setCreateTracingParsers(XmlTracer xmlTracer)
-
-
-
Method Detail
-
setCreateTracingParsers
public static void setCreateTracingParsers(XmlTracer xmlTracer)
-
create
public static XmlPullParser create(java.io.InputStream input, java.lang.String inputName, org.xml.sax.ErrorHandler errHandler, boolean validate) throws org.xml.sax.SAXException, java.io.IOException
Constructs a new parser using the specified stream and name.- Parameters:
input
- the input XML streaminputName
- the name of the streamerrHandler
- the XML error handlervalidate
- true if the parse should validate against the DTD- Throws:
org.xml.sax.SAXException
- if an XML parse error occursjava.io.IOException
-
create
public static XmlPullParser create(java.io.File file, org.xml.sax.ErrorHandler errHandler, boolean validate) throws org.xml.sax.SAXException, java.io.IOException
Constructs a new parser using the specified XML file.- Parameters:
file
- the input XML fileerrHandler
- the XML error handlervalidate
- true if the parse should validate against the DTD- Throws:
org.xml.sax.SAXException
- if an XML parse error occursjava.io.IOException
- if an i/o error occurs
-
create
public static XmlPullParser create(ResourceFile file, org.xml.sax.ErrorHandler errHandler, boolean validate) throws org.xml.sax.SAXException, java.io.IOException
Constructs a new parser using the specified XML file.- Parameters:
file
- the input XML fileerrHandler
- the XML error handlervalidate
- true if the parse should validate against the DTD- Throws:
org.xml.sax.SAXException
- if an XML parse error occursjava.io.IOException
- if an i/o error occurs
-
create
public static XmlPullParser create(java.lang.String input, java.lang.String inputName, org.xml.sax.ErrorHandler errHandler, boolean validate) throws org.xml.sax.SAXException
Constructs a new parser using the specified XML file.- Parameters:
input
- A string that contains the XML input datainputName
- A descriptive name for the XML process (this will appear as the thread name)errHandler
- the XML error handlervalidate
- true if the parse should validate against the DTD- Throws:
org.xml.sax.SAXException
- if an XML parse error occurs
-
-