Package com.helger.xml.serialize.read
Interface ISAXReaderSettings
- All Superinterfaces:
IBaseXMLReaderSettings
- All Known Implementing Classes:
SAXReaderSettings
Read-only interface for the
SAXReaderSettings. Implementations of
this interface are meant to define settings that can be used with
org.xml.sax.XMLReader instances.- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyToSAXReader(XMLReader aParser) Apply all settings of this object onto the specified XMLReader objectbooleanbooleanCheck if the current settings require a separateXMLReaderor if a pooled default object can be used.Methods inherited from interface com.helger.xml.serialize.read.IBaseXMLReaderSettings
exceptionCallbacks, getAllFeatureValues, getAllPropertyValues, getEntityResolver, getErrorHandler, getFeatureValue, getLocale, getPropertyValue, hasAnyFeature, hasAnyProperties
-
Method Details
-
getDTDHandler
- Returns:
- The special DTD handler to be used. May be
null.
-
getContentHandler
- Returns:
- The special content handler to be used. May be
null.
-
getLexicalHandler
- Returns:
- The special lexical handler to be used. May be
null.
-
getDeclarationHandler
- Returns:
- The special DTD declaration event handler to be used. May be
null.
-
isRequiresNewXMLParserExplicitly
boolean isRequiresNewXMLParserExplicitly()- Returns:
trueif a new XML parser is explicitly required for this instance.
-
getCustomSAXParserFactory
- Returns:
- A custom SAX parser factory. This is only needed to work around some of the default SAXParserFactory configuration cannot be applied.
- Since:
- 11.2.0
-
requiresNewXMLParser
boolean requiresNewXMLParser()Check if the current settings require a separateXMLReaderor if a pooled default object can be used.- Specified by:
requiresNewXMLParserin interfaceIBaseXMLReaderSettings- Returns:
trueif a separateXMLReaderis required,falseif not.
-
applyToSAXReader
Apply all settings of this object onto the specified XMLReader object- Parameters:
aParser- The XML reader to apply the settings onto. May not benull.
-