org.jaxen.saxpath.helpers
Class XPathReaderFactory
java.lang.Objectorg.jaxen.saxpath.helpers.XPathReaderFactory
public class XPathReaderFactory
extends java.lang.Object
Create an
XPathReader from
either a system property, or a named class.
Similar to the SAX API, the
XPathReaderFactory
can create an
XPathReader from a name of a
class passed in directly, or by inspecting the system
property
org.saxpath.driver.
- bob mcwhirter (bob@werken.com)
protected static String | DEFAULT_DRIVER- The default driver to use if none is configured.
|
static String | DRIVER_PROPERTY- The
org.saxpath.driver property name.
|
DEFAULT_DRIVER
protected static final String DEFAULT_DRIVER
The default driver to use if none is configured.
DRIVER_PROPERTY
public static final String DRIVER_PROPERTY
The org.saxpath.driver property name.
XPathReaderFactory
private XPathReaderFactory()
createReader
public static XPathReader createReader()
throws SAXPathExceptionCreate an XPathReader using the value of
the org.saxpath.driver system property.
- an instance of the
XPathReader specified
by the org.saxpath.driver property
SAXPathException - if the property is not set, or if
the class can not be instantiated for some reason,
or if the class doesn't implement the XPathReader
interface
createReader
public static XPathReader createReader(String className)
throws SAXPathExceptionCreate an XPathReader using the passed
in class name.
className - the name of the class that implements
the XPathReader interface.
SAXPathException - if the class cannot be
instantiated for some reason, or if the
class doesn't implement the XPathReader
interface