public class SaxEventSource extends java.lang.Object implements XmlEventSource
XmlEventSource implementation based on SAX.| Constructor and Description |
|---|
SaxEventSource(java.io.Reader reader)
Creates a SAX event source backed by a reader
and a charset.
|
| Modifier and Type | Method and Description |
|---|---|
void |
parse(org.xml.sax.helpers.DefaultHandler handler)
Parse this event source with the given xml handler.
|
public SaxEventSource(java.io.Reader reader)
public void parse(org.xml.sax.helpers.DefaultHandler handler)
throws java.io.IOException,
org.xml.sax.SAXException
XmlEventSourceparse in interface XmlEventSourcehandler - an xml handler that can handle the xml event source.org.xml.sax.SAXException - if parsing fails.java.io.IOException