Package org.apache.tika.batch.fs
Class FSDocumentSelector
- java.lang.Object
- 
- org.apache.tika.batch.fs.FSDocumentSelector
 
- 
- All Implemented Interfaces:
- DocumentSelector
 
 public class FSDocumentSelector extends Object implements DocumentSelector Selector that chooses files based on their file name and their size, as determined by TikaCoreProperties.RESOURCE_NAME_KEY and Metadata.CONTENT_LENGTH. TheexcludeFileNamepattern is applied first (if it isn't null). Then theincludeFileNamepattern is applied (if it isn't null), and finally, the size limit is applied if it is above 0.
- 
- 
Constructor SummaryConstructors Constructor Description FSDocumentSelector(Pattern includeFileName, Pattern excludeFileName, long minFileSizeBytes, long maxFileSizeBytes)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanselect(Metadata metadata)Checks if a document with the given metadata matches the specified selection criteria.
 
- 
- 
- 
Method Detail- 
selectpublic boolean select(Metadata metadata) Description copied from interface:DocumentSelectorChecks if a document with the given metadata matches the specified selection criteria.- Specified by:
- selectin interface- DocumentSelector
- Parameters:
- metadata- document metadata
- Returns:
- trueif the document matches the selection criteria,- falseotherwise
 
 
- 
 
-