|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.io.filefilter.AbstractFileFilter org.apache.commons.finder.filters.SizeFilter
public class SizeFilter
IOFileFilter
implementation that matches on the file size.
Constructor Summary | |
---|---|
SizeFilter(java.lang.String size)
Construct a new IOFileFilter specifying the
file size. |
|
SizeFilter(java.lang.String size,
boolean roundUp)
Construct a new IOFileFilter specifying the
file size. |
Method Summary | |
---|---|
boolean |
accept(java.io.File file)
Tests whether the File is
a specified size. |
java.lang.String |
toString()
Return a String representation of this class. |
Methods inherited from class org.apache.commons.io.filefilter.AbstractFileFilter |
---|
accept |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SizeFilter(java.lang.String size)
IOFileFilter
specifying the
file size.
size
- The minimum file size.public SizeFilter(java.lang.String size, boolean roundUp)
IOFileFilter
specifying the
file size.
size
- The minimum file size.roundUp
- Whether equals compares should round up or down.Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public boolean accept(java.io.File file)
File
is
a specified size.
accept
in interface java.io.FileFilter
accept
in interface org.apache.commons.io.filefilter.IOFileFilter
accept
in class org.apache.commons.io.filefilter.AbstractFileFilter
file
- The File
to test.
true
if the File
is a specified size, otherwise
false
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |