public final class SAXHelper
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static org.dom4j.io.SAXReader |
getSAXReader()
Creates a new DOM4J SAXReader, with sensible defaults
|
static org.xml.sax.XMLReader |
newXMLReader()
Creates a new SAX XMLReader, with sensible defaults
|
static org.dom4j.Document |
readSAXDocument(java.io.InputStream inp)
Parses the given stream via the default (sensible)
SAX Reader
|
public static org.xml.sax.XMLReader newXMLReader()
throws org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXExceptionjavax.xml.parsers.ParserConfigurationExceptionpublic static org.dom4j.io.SAXReader getSAXReader()
throws org.dom4j.DocumentException
org.dom4j.DocumentExceptionpublic static org.dom4j.Document readSAXDocument(java.io.InputStream inp)
throws org.dom4j.DocumentException
inp - Stream to read the XML data fromorg.dom4j.DocumentExceptionCopyright 2015 The Apache Software Foundation or its licensors, as applicable.