edu.uky.rch.ept.xmlSegmentTree.parse
Class XMLParser

java.lang.Object
  extended byedu.uky.rch.ept.xmlSegmentTree.parse.XMLParser

public class XMLParser
extends Object

Class for parsing pseudo-XML.


Constructor Summary
XMLParser()
          Construct a new XML parser with a default parse handler.
XMLParser(XMLParseHandler handler)
          Construct a new XML parser with the specified parse handler.
 
Method Summary
 void parse(CharSequence xmlText)
          Parse a pseudo-XML document, making calls to the parse handler for each event.
 void setParseHandler(XMLParseHandler handler)
          Set the parse handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLParser

public XMLParser()
Construct a new XML parser with a default parse handler.


XMLParser

public XMLParser(XMLParseHandler handler)
Construct a new XML parser with the specified parse handler.

Method Detail

setParseHandler

public void setParseHandler(XMLParseHandler handler)
Set the parse handler.

Parameters:
handler - the new parse handler.

parse

public void parse(CharSequence xmlText)
           throws XMLParseException
Parse a pseudo-XML document, making calls to the parse handler for each event.

Parameters:
xmlText - the text of the XML to parse.
Throws:
XMLParseException - if any methods of the handler throw an exception.