public final class SAXHelper
extends java.lang.Object
Modifier and Type | Method | 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.SAXException
javax.xml.parsers.ParserConfigurationException
public static org.dom4j.io.SAXReader getSAXReader() throws org.dom4j.DocumentException
org.dom4j.DocumentException
public static org.dom4j.Document readSAXDocument(java.io.InputStream inp) throws org.dom4j.DocumentException
inp
- Stream to read the XML data fromorg.dom4j.DocumentException
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.