Package org.apache.tika.parser.enricher
Class SizeGatedEnricher
java.lang.Object
org.apache.tika.parser.ParserDecorator
org.apache.tika.parser.enricher.SizeGatedEnricher
- All Implemented Interfaces:
Serializable,SelfConfiguring,Parser
Deprecated.
A
text-recognizers entry's _min-width/_min-height: an image whose
recorded dimensions (tiff:ImageWidth, tiff:ImageLength) fall short in either
is not handed to the engine. An image of unknown size is. The engine's own byte gates
(minFileSizeToOcr) are unchanged.- Since:
- Apache Tika 4.1
- 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 TypeMethodDescriptionDeprecated.intDeprecated.intDeprecated.voidparse(TikaInputStream tis, ContentHandler handler, Metadata metadata, ParseContext context) Deprecated.Delegates the method call to the decorated parser.static booleanMethods inherited from class org.apache.tika.parser.ParserDecorator
getSupportedTypes, getWrappedParser, withFallbacks, withMimeFilters, withoutTypes, withTypes
-
Constructor Details
-
SizeGatedEnricher
Deprecated.
-
-
Method Details
-
tooSmall
True when the metadata records a width or height below the minimum. -
getMinWidth
public int getMinWidth()Deprecated. -
getMinHeight
public int getMinHeight()Deprecated. -
parse
public void parse(TikaInputStream tis, ContentHandler handler, Metadata metadata, ParseContext context) throws IOException, SAXException, TikaException Deprecated.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
Deprecated.- Overrides:
getDecorationNamein classParserDecorator- Returns:
- A name/description of the decoration, or null if none available
-
GatedEnricheras aRecordedSizeCheck. To be removed in 5.0.