Package org.apache.tika.metadata.filter
Class ClearByMimeMetadataFilter
java.lang.Object
org.apache.tika.config.ConfigBase
org.apache.tika.metadata.filter.MetadataFilter
org.apache.tika.metadata.filter.ClearByMimeMetadataFilter
- All Implemented Interfaces:
Serializable
This class clears the entire metadata object if the
mime matches the mime filter. The idea is that you might not want
to store/transmit metadata for images or specific file types.
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.tika.metadata.filter.MetadataFilter
load
Methods inherited from class org.apache.tika.config.ConfigBase
buildComposite, buildComposite, buildSingle, buildSingle, configure, handleSettings
-
Constructor Details
-
ClearByMimeMetadataFilter
public ClearByMimeMetadataFilter() -
ClearByMimeMetadataFilter
-
-
Method Details
-
filter
- Specified by:
filter
in classMetadataFilter
- Throws:
TikaException
-
setMimes
- Parameters:
mimes
- list of mimes that will trigger complete removal of metadata
-