org.apache.felix.scr.impl.parser
Class KXml2SAXParser

java.lang.Object
  extended by org.kxml2.io.KXmlParser
      extended by org.apache.felix.scr.impl.parser.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
KXml2SAXParser(java.io.Reader reader)
          The constructor for a parser, it receives a java.io.Reader.
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KXml2SAXParser

public KXml2SAXParser(java.io.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 java.lang.Exception
Parser from the reader provided in the constructor, and call the startElement and endElement in a KxmlHandler

Parameters:
handler - The handler
Throws:
java.lang.Exception - thrown by the superclass