class SAXHelper extends Object
SAXHelper
contains some helper methods for working with
SAX and XMLReader objects.
Modifier and Type | Field and Description |
---|---|
private static boolean |
loggedWarning |
Constructor and Description |
---|
SAXHelper() |
Modifier and Type | Method and Description |
---|---|
protected static boolean |
classNameAvailable(String className) |
static 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 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(XMLReader reader,
String featureName,
boolean value) |
static boolean |
setParserProperty(XMLReader reader,
String propertyName,
Object value) |
private static boolean loggedWarning
SAXHelper()
public static boolean setParserProperty(XMLReader reader, String propertyName, Object value)
public static boolean setParserFeature(XMLReader reader, String featureName, boolean value)
public static XMLReader createXMLReader(boolean validating) throws SAXException
SAXException
protected static XMLReader createXMLReaderViaJAXP(boolean validating, boolean namespaceAware)
protected static boolean classNameAvailable(String className)
protected static boolean isVerboseErrorReporting()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses