Package org.apache.commons.vfs2.filter
Class SizeRangeFileFilter
java.lang.Object
org.apache.commons.vfs2.filter.SizeRangeFileFilter
- All Implemented Interfaces:
Serializable,FileFilter
Filter that accepts files whose size is >= minimum size and <= maximum
size.
- Since:
- 2.4
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSizeRangeFileFilter(long minSizeInclusive, long maxSizeInclusive) Constructor with sizes. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(FileSelectInfo fileSelectInfo) Determines if a file or folder should be selected.
-
Constructor Details
-
SizeRangeFileFilter
Constructor with sizes.- Parameters:
minSizeInclusive- the minimum file size (inclusive)maxSizeInclusive- the maximum file size (inclusive)
-
-
Method Details
-
accept
Description copied from interface:FileFilterDetermines if a file or folder should be selected.- Specified by:
acceptin interfaceFileFilter- Parameters:
fileSelectInfo- the file or folder to select.- Returns:
- true if the file should be selected.
- Throws:
FileSystemException- Thrown for file system errors (since 2.4.)
-