|
JDOM 2.0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdom2.input.sax.XMLReaderSAX2Factory
public class XMLReaderSAX2Factory
Create XMLReaders directly from the SAX2.0 API using a SAX Driver class name or the default SAX2.0 location process.
Unless you have good reason to use this mechanism you should rather use the
JAXP-based processes. Read the package
documentation
for other alternatives.
org.jdom2.input.sax
Constructor Summary | |
---|---|
XMLReaderSAX2Factory(boolean validate)
The required details for SAX2.0-based XMLReader creation. |
|
XMLReaderSAX2Factory(boolean validate,
java.lang.String saxdriver)
The required details for SAX2.0-based XMLReader creation. |
Method Summary | |
---|---|
org.xml.sax.XMLReader |
createXMLReader()
Return a new XMLReader according to the implementation of this XMLReaderJDOMFactory instance. |
java.lang.String |
getDriverClassName()
Get the SAX Driver class name used to boostrap XMLReaders. |
boolean |
isValidating()
Does an XMLReader from this factory do more than just well-formed checks. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLReaderSAX2Factory(boolean validate)
validate
- whether to validate against the DocTypeXMLReaders.NONVALIDATING
,
XMLReaders.DTDVALIDATING
,
XMLReaders.XSDVALIDATING
public XMLReaderSAX2Factory(boolean validate, java.lang.String saxdriver)
validate
- whether to validate against the DocTypesaxdriver
- The SAX2.0 Driver classname (null to use the SAX2.0 default parser
searching algorithm - if you specify null you should probably be
using JAXP anyway).XMLReaders.NONVALIDATING
,
XMLReaders.DTDVALIDATING
,
XMLReaders.XSDVALIDATING
Method Detail |
---|
public org.xml.sax.XMLReader createXMLReader() throws JDOMException
XMLReaderJDOMFactory
SAXBuilder
.
createXMLReader
in interface XMLReaderJDOMFactory
JDOMException
- if an XMLReader was not available.public java.lang.String getDriverClassName()
public boolean isValidating()
XMLReaderJDOMFactory
isValidating
in interface XMLReaderJDOMFactory
|
JDOM 2.0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |