Package org.apache.tika.metadata.filter
Class MetadataFilter
- java.lang.Object
-
- org.apache.tika.config.ConfigBase
-
- org.apache.tika.metadata.filter.MetadataFilter
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ClearByMimeMetadataFilter,CompositeMetadataFilter,DateNormalizingMetadataFilter,ExcludeFieldMetadataFilter,FieldNameMappingFilter,IncludeFieldMetadataFilter,NoOpFilter,OpenNLPMetadataFilter,OptimaizeMetadataFilter,TikaEvalMetadataFilter
public abstract class MetadataFilter extends ConfigBase implements Serializable
Filters the metadata in place after the parse- Since:
- Apache Tika 1.25
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MetadataFilter()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidfilter(Metadata metadata)static MetadataFilterload(Element root, boolean allowMissing)Loads the metadata filter from the config file if it exists, otherwise returns NoOpFilter-
Methods inherited from class org.apache.tika.config.ConfigBase
buildComposite, buildComposite, buildSingle, buildSingle, configure, handleSettings
-
-
-
-
Method Detail
-
load
public static MetadataFilter load(Element root, boolean allowMissing) throws TikaConfigException, IOException
Loads the metadata filter from the config file if it exists, otherwise returns NoOpFilter- Parameters:
root-- Returns:
- Throws:
TikaConfigExceptionIOException
-
filter
public abstract void filter(Metadata metadata) throws TikaException
- Throws:
TikaException
-
-