public class SizeLessThanOrEqual
extends java.lang.Object
FileFilter
accepts files based on whether the size of the file is less than or equal to the specified value..Constructor and Description |
---|
SizeLessThanOrEqual(long fileSize)
Create the filefilter using the specified size.
|
SizeLessThanOrEqual(java.lang.String size)
Create the filefilter using the specified size.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.io.File pathname) |
protected long |
getFilesize() |
public SizeLessThanOrEqual(java.lang.String size)
size
- the size of the file in bytes.public SizeLessThanOrEqual(long fileSize)
fileSize
- the size of the file in bytes.