public class XMLReaderSAX2Factory extends java.lang.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,
java.lang.String saxdriver)
The required details for SAX2.0-based XMLReader creation.
|
Modifier and Type | Method and Description |
---|---|
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 bootstrap 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, 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
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
Copyright © 2021 Jason Hunter, Brett McLaughlin. All Rights Reserved.