Class AbstractXppDomDriver

All Implemented Interfaces:
HierarchicalStreamDriver
Direct Known Subclasses:
MXParserDomDriver, XppDomDriver

public abstract class AbstractXppDomDriver extends AbstractXmlDriver
An abstract base class for a driver using an XPP DOM implementation.
Since:
1.4
  • Constructor Details

    • AbstractXppDomDriver

      public AbstractXppDomDriver(NameCoder nameCoder)
      Construct an AbstractXppDomDriver.
      Parameters:
      nameCoder - the replacer for XML friendly names
      Since:
      1.4
  • Method Details

    • createReader

      public HierarchicalStreamReader createReader(Reader in)
      Create the HierarchicalStreamReader with the stream parser reading from the IO reader.
      Parameters:
      in - the Reader with the data to parse
      Returns:
      the HierarchicalStreamReader
    • createReader

      public HierarchicalStreamReader createReader(InputStream in)
      Create the HierarchicalStreamReader with the stream parser reading from the input stream.
      Parameters:
      in - the InputStream with the data to parse
    • createWriter

      public HierarchicalStreamWriter createWriter(Writer out)
      Create the HierarchicalStreamWriter with the formatted writer.
      Parameters:
      out - the Writer to receive the formatted data
      Returns:
      the HierarchicalStreamWriter
    • createWriter

      public HierarchicalStreamWriter createWriter(OutputStream out)
      Create the HierarchicalStreamWriter with the formatted writer.
      Parameters:
      out - the OutputStream to receive the formatted data
      Returns:
      the HierarchicalStreamWriter
    • createParser

      protected abstract org.xmlpull.v1.XmlPullParser createParser() throws org.xmlpull.v1.XmlPullParserException
      Create the parser of the XPP implementation.
      Throws:
      org.xmlpull.v1.XmlPullParserException - if the parser cannot be created
      Since:
      1.4