Package ghidra.xml

Class XmlPullParserFactory


  • public class XmlPullParserFactory
    extends java.lang.Object
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XmlPullParserFactory

        public XmlPullParserFactory()
    • 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 stream
        inputName - the name of the stream
        errHandler - the XML error handler
        validate - true if the parse should validate against the DTD
        Throws:
        org.xml.sax.SAXException - if an XML parse error occurs
        java.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 file
        errHandler - the XML error handler
        validate - true if the parse should validate against the DTD
        Throws:
        org.xml.sax.SAXException - if an XML parse error occurs
        java.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 file
        errHandler - the XML error handler
        validate - true if the parse should validate against the DTD
        Throws:
        org.xml.sax.SAXException - if an XML parse error occurs
        java.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 data
        inputName - A descriptive name for the XML process (this will appear as the thread name)
        errHandler - the XML error handler
        validate - true if the parse should validate against the DTD
        Throws:
        org.xml.sax.SAXException - if an XML parse error occurs