public class XMLReaderJAXPFactory extends java.lang.Object implements XMLReaderJDOMFactory
If you want to rely on the default JAXP search mechanism you should instead use one of the simple
members of the XMLReaders
enumeration, or use one of the simple constructors on
XMLReaderXSDFactory
or XMLReaderSchemaFactory
.
See the documentation for SAXParserFactory
for the details on what the factoryClassName
and classLoader should be.
org.jdom2.input.sax
Constructor and Description |
---|
XMLReaderJAXPFactory(java.lang.String factoryClassName,
java.lang.ClassLoader classLoader,
boolean dtdvalidate)
Create an XMLReaderJAXPFactory using the specified factory name, classloader, and
dtdvalidating flag.
|
Modifier and Type | Method and Description |
---|---|
org.xml.sax.XMLReader |
createXMLReader()
Return a new XMLReader according to the implementation of this
XMLReaderJDOMFactory instance.
|
boolean |
isValidating()
Does an XMLReader from this factory do more than just well-formed checks.
|
public XMLReaderJAXPFactory(java.lang.String factoryClassName, java.lang.ClassLoader classLoader, boolean dtdvalidate)
factoryClassName
- The name of the implementation to use for the SAXParserFactory.classLoader
- The classloader to use for locating the SAXParserFactory (may be null).dtdvalidate
- Whether this should create DTD Validating XMLReaders.public org.xml.sax.XMLReader createXMLReader() throws JDOMException
XMLReaderJDOMFactory
SAXBuilder
.createXMLReader
in interface XMLReaderJDOMFactory
JDOMException
- if an XMLReader was not available.public boolean isValidating()
XMLReaderJDOMFactory
isValidating
in interface XMLReaderJDOMFactory
Copyright © 2021 Jason Hunter, Brett McLaughlin. All Rights Reserved.