public class StringSAXEventProvider extends Object implements SAXEventProvider
The GNU Lesser General Public License for details.
Modifier and Type | Field and Description |
---|---|
private XMLReader |
reader
The SAX parser
|
private String |
xmlstr
The source of XML data
|
Constructor and Description |
---|
StringSAXEventProvider(String xmlstr)
Simple ctor
|
Modifier and Type | Method and Description |
---|---|
void |
provideSAXEvents(ContentHandler handler)
When SAX events are required the user of this interface can call this
method.
|
private XMLReader reader
private String xmlstr
public StringSAXEventProvider(String xmlstr) throws ParserConfigurationException, SAXException
xmlstr
- the xml as a stringParserConfigurationException
- when there is a parser configuration problemSAXException
- when there is a SAX problempublic void provideSAXEvents(ContentHandler handler) throws SAXException
SAXEventProvider
provideSAXEvents
in interface SAXEventProvider
handler
- The place to send SAX events.SAXException
- when a SAX encounters a problem