Interface ISAXReaderSettings

All Superinterfaces:
IBaseXMLReaderSettings
All Known Implementing Classes:
SAXReaderSettings

public interface ISAXReaderSettings extends IBaseXMLReaderSettings
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 Details

    • getDTDHandler

      @Nullable DTDHandler getDTDHandler()
      Returns:
      The special DTD handler to be used. May be null.
    • getContentHandler

      @Nullable ContentHandler getContentHandler()
      Returns:
      The special content handler to be used. May be null.
    • getLexicalHandler

      @Nullable LexicalHandler getLexicalHandler()
      Returns:
      The special lexical handler to be used. May be null.
    • getDeclarationHandler

      @Nullable DeclHandler getDeclarationHandler()
      Returns:
      The special DTD declaration event handler to be used. May be null.
    • isRequiresNewXMLParserExplicitly

      boolean isRequiresNewXMLParserExplicitly()
      Returns:
      true if a new XML parser is explicitly required for this instance.
    • getCustomSAXParserFactory

      @Nullable SAXParserFactory 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 separate XMLReader or if a pooled default object can be used.
      Specified by:
      requiresNewXMLParser in interface IBaseXMLReaderSettings
      Returns:
      true if a separate XMLReader is required, false if not.
    • applyToSAXReader

      void applyToSAXReader(@Nonnull XMLReader aParser)
      Apply all settings of this object onto the specified XMLReader object
      Parameters:
      aParser - The XML reader to apply the settings onto. May not be null.