public class SizeLessThan
extends java.lang.Object
FileFilter
accepts files based on whether the size of the file is less than the specified value.Constructor and Description |
---|
SizeLessThan(long fileSize)
Create the filefilter using the specified size.
|
SizeLessThan(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 SizeLessThan(java.lang.String size)
size
- the size of the file in bytes.public SizeLessThan(long fileSize)
fileSize
- the size of the file in bytes.