org.saxpath.helpers
public class XPathReaderFactory extends Object
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 String | DEFAULT_DRIVER The default driver to use if none is configured. |
static String | DRIVER_PROPERTY The org.saxpath.driver property name. |
Method Summary | |
---|---|
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.
|
org.saxpath.driver
property name.XPathReader
using the value of
the org.saxpath.driver
system property.
Returns: An instance of the XPathReader
specified
by the org.saxpath.driver
property.
Throws: 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.
XPathReader
using the passed
in class name.
Parameters: className The name of the class which implements
the XPathReader
interface.
Throws: SAXPathException if the class can not be
instantiated for some reason, or if the
class doesn't implement the XPathReader
interface.