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