Package org.apache.tika.parser.enricher
Class GatedEnricher
java.lang.Object
org.apache.tika.parser.ParserDecorator
org.apache.tika.parser.enricher.GatedEnricher
- All Implemented Interfaces:
Serializable,SelfConfiguring,Parser
A text recognizer behind a chain of
ImageChecks, in order. The first check to refuse
keeps the image from the engine and records skipped:<reason>; a check that fails
admits it. One decorator however many checks an entry lists.- Since:
- Apache Tika 4.2
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.tika.parser.ParserDecorator
ParserDecorator.MimeFilteringDecorator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidparse(TikaInputStream tis, ContentHandler handler, Metadata metadata, ParseContext context) Delegates the method call to the decorated parser.Methods inherited from class org.apache.tika.parser.ParserDecorator
getSupportedTypes, getWrappedParser, withFallbacks, withMimeFilters, withoutTypes, withTypes
-
Constructor Details
-
GatedEnricher
-
-
Method Details
-
getChecks
-
parse
public void parse(TikaInputStream tis, ContentHandler handler, Metadata metadata, ParseContext context) throws IOException, SAXException, TikaException Description copied from class:ParserDecoratorDelegates the method call to the decorated parser. Subclasses should override this method (and usesuper.parse()to invoke the decorated parser) to implement extra decoration.- Specified by:
parsein interfaceParser- Overrides:
parsein classParserDecorator- Parameters:
handler- handler for the XHTML SAX events (output)metadata- document metadata (input and output)context- parse context- Throws:
IOException- if the document stream could not be readSAXException- if the SAX events could not be processedTikaException- if the document could not be parsed
-
getDecorationName
- Overrides:
getDecorationNamein classParserDecorator- Returns:
- A name/description of the decoration, or null if none available
-