Package org.dom4j.io
Class JAXPHelper
- java.lang.Object
-
- org.dom4j.io.JAXPHelper
-
class JAXPHelper extends java.lang.ObjectJAXPHelpercontains some helper methods for working with JAXP. These methods are kept in a seperate class to avoid class loading issues, such that dom4j can work without JAXP on the CLASSPATH- Version:
- $Revision: 1.7 $
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJAXPHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.w3c.dom.DocumentcreateDocument(boolean validating, boolean namespaceAware)static org.xml.sax.XMLReadercreateXMLReader(boolean validating, boolean namespaceAware)This method attempts to use JAXP to locate the SAX2 XMLReader implementation.
-
-
-
Method Detail
-
createXMLReader
public static org.xml.sax.XMLReader createXMLReader(boolean validating, boolean namespaceAware) throws java.lang.ExceptionThis method attempts to use JAXP to locate the SAX2 XMLReader implementation. This method uses reflection to avoid being dependent directly on the JAXP classes.- Parameters:
validating- DOCUMENT ME!namespaceAware- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
java.lang.Exception- DOCUMENT ME!
-
createDocument
public static org.w3c.dom.Document createDocument(boolean validating, boolean namespaceAware) throws java.lang.Exception- Throws:
java.lang.Exception
-
-