public final class XmlParser extends Object
Constructor and Description |
---|
XmlParser()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
XmlParser |
contentHandler(ContentHandler handler)
Sets a content handler.
|
void |
parse(InputStream stream)
Sets a content handler.
|
public XmlParser() throws SAXException, ParserConfigurationException
ParserConfigurationException
- parser configurationSAXException
- SAX exceptionpublic XmlParser contentHandler(ContentHandler handler)
handler
- content handlerpublic void parse(InputStream stream) throws IOException, SAXException
stream
- input streamIOException
- I/O exceptionSAXException
- SAX exceptionCopyright © 2005–2015 BaseX Team. All rights reserved.