A custom scanner that only returns the first 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.
Sets a custom filter to be used by this scanner. The filter will get a
chance to reject files before the scanner presents them through its
listFiles method. A scanner may use additional filtering that is out of
the control of the provided filter.