public class XPathReaderFactory extends Object
org.saxpath.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.
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_DRIVER
The default driver to use if none is configured.
|
static String |
DRIVER_PROPERTY
The
org.saxpath.driver property name. |
| Constructor and Description |
|---|
XPathReaderFactory() |
| Modifier and Type | Method and Description |
|---|---|
static XPathReader |
createReader()
Create an
XPathReader using the value of
the org.saxpath.driver system property. |
static XPathReader |
createReader(String className)
Create an
XPathReader using the passed
in class name. |
public static final String DRIVER_PROPERTY
org.saxpath.driver property name.protected static final String DEFAULT_DRIVER
public static XPathReader createReader() throws SAXPathException
XPathReader using the value of
the org.saxpath.driver system property.XPathReader specified
by the org.saxpath.driver property.SAXPathException - if the property is unset, or if
the class can not be instantiated for some reason.,
or if the class doesn't implement the XPathReader
interface.public static XPathReader createReader(String className) throws SAXPathException
XPathReader using the passed
in class name.className - The name of the class which implements
the XPathReader interface.SAXPathException - if the class can not be
instantiated for some reason, or if the
class doesn't implement the XPathReader
interface.Copyright © 2013. All Rights Reserved.