Package org.apache.commons.vfs2.filter
Class SizeRangeFileFilter
- java.lang.Object
-
- org.apache.commons.vfs2.filter.SizeRangeFileFilter
-
- All Implemented Interfaces:
java.io.Serializable
,FileFilter
public class SizeRangeFileFilter extends java.lang.Object implements FileFilter, java.io.Serializable
Filter that accepts files whose size is >= minimum size and <= maximum size.- Since:
- 2.4
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private FileFilter
filter
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description SizeRangeFileFilter(long minSizeInclusive, long maxSizeInclusive)
Constructor with sizes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(FileSelectInfo fileSelectInfo)
Determines if a file or folder should be selected.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
filter
private final FileFilter filter
-
-
Method Detail
-
accept
public boolean accept(FileSelectInfo fileSelectInfo) throws FileSystemException
Description copied from interface:FileFilter
Determines if a file or folder should be selected.- Specified by:
accept
in 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.)
-
-