Package ghidra.xml
Class XmlPullParserFactory
java.lang.Object
ghidra.xml.XmlPullParserFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic XmlPullParser
create
(ResourceFile file, ErrorHandler errHandler, boolean validate) Constructs a new parser using the specified XML file.static XmlPullParser
create
(File file, ErrorHandler errHandler, boolean validate) Constructs a new parser using the specified XML file.static XmlPullParser
create
(InputStream input, String inputName, ErrorHandler errHandler, boolean validate) Constructs a new parser using the specified stream and name.static XmlPullParser
create
(String input, String inputName, ErrorHandler errHandler, boolean validate) Constructs a new parser using the specified XML file.static void
setCreateTracingParsers
(XmlTracer xmlTracer)
-
Constructor Details
-
XmlPullParserFactory
public XmlPullParserFactory()
-
-
Method Details
-
setCreateTracingParsers
-
create
public static XmlPullParser create(InputStream input, String inputName, ErrorHandler errHandler, boolean validate) throws SAXException, 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:
SAXException
- if an XML parse error occursIOException
-
create
public static XmlPullParser create(File file, ErrorHandler errHandler, boolean validate) throws SAXException, 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:
SAXException
- if an XML parse error occursIOException
- if an i/o error occurs
-
create
public static XmlPullParser create(ResourceFile file, ErrorHandler errHandler, boolean validate) throws SAXException, 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:
SAXException
- if an XML parse error occursIOException
- if an i/o error occurs
-
create
public static XmlPullParser create(String input, String inputName, ErrorHandler errHandler, boolean validate) throws 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:
SAXException
- if an XML parse error occurs
-