Package org.apache.tika.parser
Class ParserDecorator.MimeFilteringDecorator
java.lang.Object
org.apache.tika.parser.ParserDecorator
org.apache.tika.parser.ParserDecorator.MimeFilteringDecorator
- All Implemented Interfaces:
Serializable,SelfConfiguring,Parser
- Enclosing class:
ParserDecorator
A ParserDecorator that filters supported mime types.
Stores include/exclude sets for round-trip serialization.
Results are cached when includeTypes is specified (deterministic case).
- 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 TypeMethodDescriptiongetSupportedTypes(ParseContext context) Delegates the method call to the decorated parser.Methods inherited from class org.apache.tika.parser.ParserDecorator
getWrappedParser, parse, withFallbacks, withMimeFilters, withoutTypes, withTypes
-
Constructor Details
-
MimeFilteringDecorator
-
-
Method Details
-
getSupportedTypes
Description copied from class:ParserDecoratorDelegates the method call to the decorated parser. Subclasses should override this method (and usesuper.getSupportedTypes()to invoke the decorated parser) to implement extra decoration.- Specified by:
getSupportedTypesin interfaceParser- Overrides:
getSupportedTypesin classParserDecorator- Parameters:
context- parse context- Returns:
- immutable set of media types
-
getDecorationName
- Overrides:
getDecorationNamein classParserDecorator- Returns:
- A name/description of the decoration, or null if none available
-
getIncludeTypes
- Returns:
- the included mime types, or empty set if no include filter
-
getExcludeTypes
- Returns:
- the excluded mime types, or empty set if no exclude filter
-