Interface IHintsAwareParser

  • All Superinterfaces:
    IDocumentParser
    All Known Implementing Classes:
    AbstractTikaParser, FallbackParser

    public interface IHintsAwareParser
    extends IDocumentParser
    Indicates that a parser can be initialized with generic parser configuration settings and it will try to apply any such settings the best it can when possible to do so. Those settings are typically general settings that applies to more than one parser and can thus be configured "globally" for all applicable parsers. It should be left to IDocumentParserFactory implementations to initialize parsers as they see fit. The default GenericDocumentParserFactory will always invoke the initialize(ParseHints) method at least once per configured parsers.
    Since:
    2.6.0
    Author:
    Pascal Essiembre
    • Method Detail

      • initialize

        void initialize​(ParseHints parserHints)
        Initialize this parser with the given parse hints. While not mandatory, aware parsers are strongly encouraged to support applicable hints.
        Parameters:
        parserHints - configuration settings influencing parsing when possible or appropriate