Class MaxSizeSelector
java.lang.Object
fc.io.fileselectors.ChainedFileSelector
fc.io.fileselectors.MaxSizeSelector
- All Implemented Interfaces:
FileFilter
Filters a list of files lesser or equal to some specified size.
Negative values or a zero size value chooses all files. Note:
file sizes are only applicable to normal files, not directories.
(a java.io.File api restriction). If the target file is a directory,
this selector always returns true.
-
Constructor Summary
ConstructorsConstructorDescriptionMaxSizeSelector(long filesize) MaxSizeSelector(long filesize, ChainedFileSelector filter) -
Method Summary
Methods inherited from class ChainedFileSelector
accept
-
Constructor Details
-
MaxSizeSelector
- Parameters:
filesize- the required file size in bytes
-
MaxSizeSelector
- Parameters:
filesize- the required file size in bytesfilter- the next filter in the chain
-
-
Method Details
-
main
-