public class HeadDirectoryScanner extends DefaultDirectoryScanner
maxNumberOfFiles
elements from a directory listing. This is useful to limit the number of File
objects in memory and therefore mutually exclusive with AcceptOnceFileListFilter
.
It should not be used in conjunction with an AcceptOnceFileListFilter
.Constructor and Description |
---|
HeadDirectoryScanner(int maxNumberOfFiles) |
Modifier and Type | Method and Description |
---|---|
void |
setFilter(FileListFilter<File> filter)
Sets a custom filter to be used by this scanner.
|
getFilter, getLocker, listEligibleFiles, listFiles, setLocker, tryClaim
public final void setFilter(FileListFilter<File> filter)
DirectoryScanner
setFilter
in interface DirectoryScanner
setFilter
in class DefaultDirectoryScanner
filter
- the custom filter to be used