Class KXml2SAXParser

  • All Implemented Interfaces:
    org.xmlpull.v1.XmlPullParser

    public class KXml2SAXParser
    extends org.kxml2.io.KXmlParser
    The KXml2SAXParser extends the XmlParser from kxml. This is a very simple parser that does not take into account the DTD
    • Field Summary

      • Fields inherited from interface org.xmlpull.v1.XmlPullParser

        CDSECT, COMMENT, DOCDECL, END_DOCUMENT, END_TAG, ENTITY_REF, FEATURE_PROCESS_DOCDECL, FEATURE_PROCESS_NAMESPACES, FEATURE_REPORT_NAMESPACE_ATTRIBUTES, FEATURE_VALIDATION, IGNORABLE_WHITESPACE, NO_NAMESPACE, PROCESSING_INSTRUCTION, START_DOCUMENT, START_TAG, TEXT, TYPES
    • Constructor Summary

      Constructors 
      Constructor Description
      KXml2SAXParser​(Reader reader)
      The constructor for a parser, it receives a java.io.Reader.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void parseXML​(KXml2SAXHandler handler)
      Parser from the reader provided in the constructor, and call the startElement and endElement in a KxmlHandler
      • Methods inherited from class org.kxml2.io.KXmlParser

        defineEntityReplacementText, getAttributeCount, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getColumnNumber, getDepth, getEventType, getFeature, getInputEncoding, getLineNumber, getName, getNamespace, getNamespace, getNamespaceCount, getNamespacePrefix, getNamespaceUri, getPositionDescription, getPrefix, getProperty, getText, getTextCharacters, isAttributeDefault, isEmptyElementTag, isWhitespace, next, nextTag, nextText, nextToken, require, setFeature, setInput, setInput, setProperty, skipSubTree
    • Constructor Detail

      • KXml2SAXParser

        public KXml2SAXParser​(Reader reader)
                       throws org.xmlpull.v1.XmlPullParserException
        The constructor for a parser, it receives a java.io.Reader.
        Parameters:
        reader - The reader
        Throws:
        org.xmlpull.v1.XmlPullParserException
    • Method Detail

      • parseXML

        public void parseXML​(KXml2SAXHandler handler)
                      throws Exception
        Parser from the reader provided in the constructor, and call the startElement and endElement in a KxmlHandler
        Parameters:
        handler - The handler
        Throws:
        Exception - thrown by the superclass