public class XMLReaderSAX2Factory extends Object implements XMLReaderJDOMFactory
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 and Description |
---|
XMLReaderSAX2Factory(boolean validate)
The required details for SAX2.0-based XMLReader creation.
|
XMLReaderSAX2Factory(boolean validate,
String saxdriver)
The required details for SAX2.0-based XMLReader creation.
|
Modifier and Type | Method and Description |
---|---|
XMLReader |
createXMLReader()
Return a new XMLReader according to the implementation of this
XMLReaderJDOMFactory instance.
|
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.
|
public XMLReaderSAX2Factory(boolean validate)
validate
- whether to validate against the DocTypeXMLReaders.NONVALIDATING
,
XMLReaders.DTDVALIDATING
,
XMLReaders.XSDVALIDATING
public XMLReaderSAX2Factory(boolean validate, 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
public XMLReader createXMLReader() throws JDOMException
XMLReaderJDOMFactory
SAXBuilder
.createXMLReader
in interface XMLReaderJDOMFactory
JDOMException
- if an XMLReader was not available.public String getDriverClassName()
public boolean isValidating()
XMLReaderJDOMFactory
isValidating
in interface XMLReaderJDOMFactory
Copyright ? 2013 Jason Hunter, Brett McLaughlin. All Rights Reserved.