Class XppDriver

All Implemented Interfaces:
HierarchicalStreamDriver

public class XppDriver extends AbstractXppDriver
A HierarchicalStreamDriver using the XmlPullParserFactory to locate an XML Pull Parser.
  • Field Details

    • factory

      private static org.xmlpull.v1.XmlPullParserFactory factory
  • Constructor Details

  • Method Details

    • createDefaultParser

      public static org.xmlpull.v1.XmlPullParser createDefaultParser() throws org.xmlpull.v1.XmlPullParserException
      Create a default XML Pull Parser. The method uses the Java Service API to get the registered XmlPullParserFactory and let it create a new parser.
      Returns:
      a new instance of an XML Pull Parser
      Throws:
      org.xmlpull.v1.XmlPullParserException - if the creation of a new parser fails.
      Since:
      1.4.11
    • createParser

      protected org.xmlpull.v1.XmlPullParser createParser() throws org.xmlpull.v1.XmlPullParserException
      Description copied from class: AbstractXppDriver
      Create the parser of the XPP implementation.
      Specified by:
      createParser in class AbstractXppDriver
      Throws:
      org.xmlpull.v1.XmlPullParserException - if the parser cannot be created