Package com.norconex.importer.parser
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 toIDocumentParserFactory
implementations to initialize parsers as they see fit. The defaultGenericDocumentParserFactory
will always invoke theinitialize(ParseHints)
method at least once per configured parsers.- Since:
- 2.6.0
- Author:
- Pascal Essiembre
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
initialize(ParseHints parserHints)
Initialize this parser with the given parse hints.-
Methods inherited from interface com.norconex.importer.parser.IDocumentParser
parseDocument
-
-
-
-
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
-
-