org.apache.felix.servicebinder.parser
Class KxmlParser

java.lang.Object
  extended by org.kxml2.io.KXmlParser
      extended by org.apache.felix.servicebinder.parser.KxmlParser
All Implemented Interfaces:
org.xmlpull.v1.XmlPullParser

public class KxmlParser
extends org.kxml2.io.KXmlParser

The KxmlParser extends the XmlParser from kxml. This is a very simple parser that does not take into account the DTD

Author:
Felix Project Team

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
KxmlParser(java.io.Reader reader)
          The constructor for a parser, it receives a java.io.Reader.
 
Method Summary
 void parseXML(XmlHandler 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

KxmlParser

public KxmlParser(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 - thrown by the super class.
Method Detail

parseXML

public void parseXML(XmlHandler handler)
              throws org.xmlpull.v1.XmlPullParserException,
                     java.io.IOException,
                     ParseException
Parser from the reader provided in the constructor, and call the startElement and endElement in a KxmlHandler

Parameters:
handler - The handler
Throws:
org.xmlpull.v1.XmlPullParserException - thrown by the super class.
java.io.IOException - thrown by the super class.
ParseException - thrown by the handler.