class SAXHelper
extends java.lang.Object
SAXHelper
contains some helper methods for working with SAX
and XMLReader objects.
Modifier and Type | Field and Description |
---|---|
private static boolean |
loggedWarning |
Modifier | Constructor and Description |
---|---|
protected |
SAXHelper() |
Modifier and Type | Method and Description |
---|---|
static org.xml.sax.XMLReader |
createXMLReader(boolean validating)
Creats a default XMLReader via the org.xml.sax.driver system property or
JAXP if the system property is not set.
|
protected static org.xml.sax.XMLReader |
createXMLReaderViaJAXP(boolean validating,
boolean namespaceAware)
This method attempts to use JAXP to locate the SAX2 XMLReader
implementation.
|
protected static boolean |
isVerboseErrorReporting() |
static boolean |
setParserFeature(org.xml.sax.XMLReader reader,
java.lang.String featureName,
boolean value) |
static boolean |
setParserProperty(org.xml.sax.XMLReader reader,
java.lang.String propertyName,
java.lang.Object value) |
public static boolean setParserProperty(org.xml.sax.XMLReader reader, java.lang.String propertyName, java.lang.Object value)
public static boolean setParserFeature(org.xml.sax.XMLReader reader, java.lang.String featureName, boolean value)
public static org.xml.sax.XMLReader createXMLReader(boolean validating) throws org.xml.sax.SAXException
validating
- DOCUMENT ME!org.xml.sax.SAXException
- DOCUMENT ME!protected static org.xml.sax.XMLReader createXMLReaderViaJAXP(boolean validating, boolean namespaceAware)
validating
- DOCUMENT ME!namespaceAware
- DOCUMENT ME!protected static boolean isVerboseErrorReporting()