public class SaxEventSource extends Object implements XmlEventSource
XmlEventSource implementation based on SAX.| Constructor and Description |
|---|
SaxEventSource(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(Reader reader)
public void parse(org.xml.sax.helpers.DefaultHandler handler) throws IOException, SAXException
XmlEventSourceparse in interface XmlEventSourcehandler - an xml handler that can handle the xml event source.SAXException - if parsing fails.IOExceptionCopyright © 2012. All Rights Reserved.