Package org.jdom2.input.sax
Interface XMLReaderJDOMFactory
- All Known Implementing Classes:
AbstractReaderSchemaFactory
,AbstractReaderXSDFactory
,XMLReaderJAXPFactory
,XMLReaders
,XMLReaderSAX2Factory
,XMLReaderSchemaFactory
,XMLReaderXSDFactory
public interface XMLReaderJDOMFactory
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:
-
Method Summary
Modifier and TypeMethodDescriptionReturn a new XMLReader according to the implementation of this XMLReaderJDOMFactory instance.boolean
Does an XMLReader from this factory do more than just well-formed checks.
-
Method Details
-
createXMLReader
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 bySAXBuilder
.- Returns:
- a new XMLReader
- Throws:
JDOMException
- if an XMLReader was not available.
-
isValidating
boolean isValidating()Does an XMLReader from this factory do more than just well-formed checks.- Returns:
- true if the XMLReader validates
-