org.saxpath.helpers
Class XPathReaderFactory
java.lang.Object
|
+--org.saxpath.helpers.XPathReaderFactory
- public class XPathReaderFactory
- extends 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
.
- Author:
- bob mcwhirter (bob@werken.com)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DRIVER_PROPERTY
public static final 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.
XPathReaderFactory
public XPathReaderFactory()
createReader
public static XPathReader createReader()
throws SAXPathException
- Create an
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.
createReader
public static XPathReader createReader(String className)
throws SAXPathException
- Create an
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.
Copyright © 2001 bob mcwhirter & James Strachan. All Rights Reserved. Hosted by