Top Description Methods
org.jdom2.input.sax

public Interface XMLReaderJDOMFactory

Known Direct Implementers
org.jdom2.input.sax.XMLReaders, org.jdom2.input.sax.XMLReaderSAX2Factory, org.jdom2.input.sax.AbstractReaderSchemaFactory, org.jdom2.input.sax.XMLReaderJAXPFactory
Imports
org.xml.sax.XMLReader, org.jdom2.JDOMException, org.jdom2.input.SAXBuilder

This interface can be used to supply custom XMLReaders to SAXBuilder.

See the package documentation for details on what XMLReaderJDOMFactory implementations are available and when they are recommended.

Author
Rolf Lear
See Also
org.jdom2.input.sax

Method Summary

Modifier and TypeMethod and Description
public XMLReader

Returns:

a new XMLReader
createXMLReader
()

Return a new XMLReader according to the implementation of this XMLReaderJDOMFactory instance.

public boolean

Returns:

true if the XMLReader validates
isValidating
()

Does an XMLReader from this factory do more than just well-formed checks.

Method Detail

createXMLReaderback to summary
public XMLReader createXMLReader() throws JDOMException

Return a new XMLReader according to the implementation of this XMLReaderJDOMFactory instance. The XMLReader is expected to be a new instance that is unrelated to any other XMLReaders, and can be reused at will by SAXBuilder.

Returns:XMLReader

a new XMLReader

Exceptions
JDOMException:
if an XMLReader was not available.
isValidatingback to summary
public boolean isValidating()

Does an XMLReader from this factory do more than just well-formed checks.

Returns:boolean

true if the XMLReader validates