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
public class ClearByMimeMetadataFilter extends MetadataFilter
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClearByMimeMetadataFilter()
ClearByMimeMetadataFilter(Set<String> mimes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
filter(Metadata metadata)
void
setMimes(List<String> mimes)
-
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
-
-
-
-
Method Detail
-
filter
public void filter(Metadata metadata) throws TikaException
- Specified by:
filter
in classMetadataFilter
- Throws:
TikaException
-
-