|
Préférences
Moteurs de recherche
|
||||||||
JavaTM 2 Platform Std. Ed. v1.4.2
org.xml.sax.helpers
|
Method Summary | |
static XMLReader |
createXMLReader()
Attempt to create an XML reader from a system property. |
static XMLReader |
createXMLReader(String className)
Attempt to create an XML reader from a class name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static XMLReader createXMLReader() throws SAXException
This method uses the value of the system property "org.xml.sax.driver" as the full name of a Java class and tries to instantiate that class as a SAX2 XMLReader.
Note that many Java interpreters allow system properties to be specified on the command line.
SAXException
- If the value of the
"org.xml.sax.driver" system property is null,
or if the class cannot be loaded and instantiated.createXMLReader(java.lang.String)
public static XMLReader createXMLReader(String className) throws SAXException
Given a class name, this method attempts to load and instantiate the class as an XML reader.
SAXException
- If the class cannot be
loaded, instantiated, and cast to XMLReader.createXMLReader()