Package org.apache.tika.metadata.filter
Class IncludeFieldMetadataFilter
- java.lang.Object
-
- org.apache.tika.config.ConfigBase
-
- org.apache.tika.metadata.filter.MetadataFilter
-
- org.apache.tika.metadata.filter.IncludeFieldMetadataFilter
-
- All Implemented Interfaces:
Serializable
public class IncludeFieldMetadataFilter extends MetadataFilter
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IncludeFieldMetadataFilter()
IncludeFieldMetadataFilter(Set<String> fields)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
filter(Metadata metadata)
void
setInclude(List<String> include)
-
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
-
setInclude
@Field public void setInclude(List<String> include)
- Parameters:
include
- comma-delimited list of fields to include
-
filter
public void filter(Metadata metadata) throws TikaException
- Specified by:
filter
in classMetadataFilter
- Throws:
TikaException
-
-