Top Description Constructors Methods
org.dom4j.io

pack-priv Class JAXPHelper

extends Object
Class Inheritance
Imports
javax.xml.parsers.DocumentBuilder, .DocumentBuilderFactory, .SAXParser, .SAXParserFactory, org.xml.sax.XMLReader

JAXPHelper contains 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
Author
James Strachan
Version
$Revision: 1.7 $

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static Document
createDocument(boolean validating, boolean namespaceAware)

public static XMLReader

Returns:

DOCUMENT ME!
createXMLReader
(boolean
DOCUMENT ME!
validating
,
boolean
DOCUMENT ME!
namespaceAware
)

This method attempts to use JAXP to locate the SAX2 XMLReader implementation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

JAXPHelperback to summary
protected JAXPHelper()

Method Detail

createDocumentback to summary
public static Document createDocument(boolean validating, boolean namespaceAware) throws Exception
createXMLReaderback to summary
public static XMLReader createXMLReader(boolean validating, boolean namespaceAware) throws Exception

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.

Parameters
validating:boolean

DOCUMENT ME!

namespaceAware:boolean

DOCUMENT ME!

Returns:XMLReader

DOCUMENT ME!

Exceptions
Exception:
DOCUMENT ME!