Class ClearByAttachmentTypeMetadataFilter
java.lang.Object
org.apache.tika.config.ConfigBase
org.apache.tika.metadata.filter.MetadataFilter
org.apache.tika.metadata.filter.ClearByAttachmentTypeMetadataFilter
- All Implemented Interfaces:
Serializable
This class clears the entire metadata object if the
attachment type matches one of the types. The idea is that you might not want
to store/transmit metadata for images or specific file types.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Methods inherited from class MetadataFilter
loadMethods inherited from class ConfigBase
buildComposite, buildComposite, buildSingle, buildSingle, configure, handleSettings
-
Constructor Details
-
ClearByAttachmentTypeMetadataFilter
public ClearByAttachmentTypeMetadataFilter() -
ClearByAttachmentTypeMetadataFilter
-
-
Method Details
-
filter
- Specified by:
filterin classMetadataFilter- Throws:
TikaException
-
setTypes
For types seeTikaCoreProperties.EmbeddedResourceType- Parameters:
types- attachment types that should be deleted.- Throws:
TikaConfigException
-
getTypes
-