public class StAX2SAX extends Object
| Constructor and Description |
|---|
StAX2SAX(ContentHandler handler)
Primes a converter with a SAX handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
parse(XMLEventReader xmlReader)
Consumes all StAX events and passes them on to the content handler
|
void |
parse(XMLStreamReader xmlReader) |
public StAX2SAX(ContentHandler handler)
handler - public void parse(XMLStreamReader xmlReader) throws XMLStreamException, SAXException
XMLStreamExceptionSAXExceptionpublic void parse(XMLEventReader xmlReader) throws XMLStreamException, SAXException
XMLStreamExceptionSAXExceptionLicenced under the Apache License, Version 2.0