Package com.adaptris.core.fs
Class SizeGreaterThan
- java.lang.Object
-
- com.adaptris.core.fs.SizeGreaterThan
-
- All Implemented Interfaces:
java.io.FileFilter
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 Summary
Constructors Constructor Description SizeGreaterThan(long fileSize)
Create the filefilter using the specified size.SizeGreaterThan(java.lang.String size)
Create the filefilter using the specified size.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(java.io.File pathname)
protected long
getFilesize()
-
-
-
Constructor Detail
-
SizeGreaterThan
public SizeGreaterThan(java.lang.String size)
Create the filefilter using the specified size.- Parameters:
size
- the size of the file in bytes.
-
SizeGreaterThan
public SizeGreaterThan(long fileSize)
Create the filefilter using the specified size.- Parameters:
fileSize
- the size of the file in bytes.
-
-