SAXHelper contains some helper methods for working with SAX
and XMLReader objects.
| Modifier and Type | Field and Description |
|---|---|
| private static boolean |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static XMLReader | Returns: DOCUMENT ME!DOCUMENT ME! 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 | Returns: DOCUMENT ME!DOCUMENT ME! validating, boolean DOCUMENT ME! namespaceAware)This method attempts to use JAXP to locate the SAX2 XMLReader implementation. |
| protected static boolean | |
| public static boolean | |
| public static boolean |
| loggedWarning | back to summary |
|---|---|
| private static boolean loggedWarning | |
| SAXHelper | back to summary |
|---|---|
| protected SAXHelper() | |
| createXMLReader | back to summary |
|---|---|
| public static XMLReader createXMLReader(boolean validating) throws SAXException Creats a default XMLReader via the org.xml.sax.driver system property or
JAXP if the system property is not set.
This method internally calls
reader.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
reader.setFeature("http://xml.org/sax/features/external-general-entities", false);
reader.setFeature("http://xml.org/sax/features/external-parameter-entities", false);
| |
| createXMLReaderViaJAXP | back to summary |
|---|---|
| protected static XMLReader createXMLReaderViaJAXP(boolean validating, boolean namespaceAware) This method attempts to use JAXP to locate the SAX2 XMLReader implementation. This method uses reflection to avoid being dependent directly on the JAXP classes.
| |
| isVerboseErrorReporting | back to summary |
|---|---|
| protected static boolean isVerboseErrorReporting() | |
| setParserFeature | back to summary |
|---|---|
| public static boolean setParserFeature(XMLReader reader, String featureName, boolean value) | |
| setParserProperty | back to summary |
|---|---|
| public static boolean setParserProperty(XMLReader reader, String propertyName, Object value) | |