com.twicom.qdparser
Class QDParser

java.lang.Object
  extended by com.twicom.qdparser.QDParser

public class QDParser
extends java.lang.Object

Quick and Dirty xml parser. This parser is, like the SAX parser, an event based parser, but with much less functionality.


Constructor Summary
QDParser()
           
 
Method Summary
static void parse(DocHandler doc, java.io.Reader r)
          Parses XML from a reader and returns a data structure containg the parsed XML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QDParser

public QDParser()
Method Detail

parse

public static void parse(DocHandler doc,
                         java.io.Reader r)
                  throws XMLParseException,
                         java.io.IOException
Parses XML from a reader and returns a data structure containg the parsed XML.

Parameters:
doc - the DocHandler that will be given the different elements of the XML
r - the Reader to get the source XML from
Throws:
XMLParseException - if an error in the XML is detected
java.io.IOException - if an error using the Reader is detected