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 toSAXBuilder
.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
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
createXMLReader
org.xml.sax.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 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
-
-