|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.saxpath.helpers.XPathReaderFactory
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
.
Field Summary | |
protected static java.lang.String |
DEFAULT_DRIVER
The default driver to use if none is configured. |
static java.lang.String |
DRIVER_PROPERTY
The org.saxpath.driver property name. |
Constructor Summary | |
XPathReaderFactory()
|
Method Summary | |
static XPathReader |
createReader()
Create an XPathReader using the value of
the org.saxpath.driver system property. |
static XPathReader |
createReader(java.lang.String className)
Create an XPathReader using the passed
in class name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String DRIVER_PROPERTY
org.saxpath.driver
property name.
protected static final java.lang.String DEFAULT_DRIVER
Constructor Detail |
public XPathReaderFactory()
Method Detail |
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(java.lang.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.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |