public class SizeRangeFileFilter extends java.lang.Object implements FileFilter, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private FileFilter |
filter |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
SizeRangeFileFilter(long minSizeInclusive,
long maxSizeInclusive)
Constructor with sizes.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(FileSelectInfo fileInfo)
Determines if a file or folder should be selected.
|
private static final long serialVersionUID
private final FileFilter filter
public SizeRangeFileFilter(long minSizeInclusive,
long maxSizeInclusive)
minSizeInclusive - the minimum file size (inclusive)maxSizeInclusive - the maximum file size (inclusive)public boolean accept(FileSelectInfo fileInfo) throws FileSystemException
FileFilteraccept in interface FileFilterfileInfo - the file or folder to select.FileSystemException - Thrown for file system errors (since 2.4.)