|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.armatiek.infofuze.stream.filesystem.filefilter.EmptyFileFilter
public class EmptyFileFilter
This filter accepts files or directories that are empty.
Based on code from Apache Commons IO version 2.01.
The main difference is that this class filters objects that
implement FileIf
,
not File
.
Field Summary | |
---|---|
static IOFileFilter |
EMPTY
Singleton instance of empty filter |
static IOFileFilter |
NOT_EMPTY
Singleton instance of not-empty filter |
Method Summary | |
---|---|
boolean |
accept(FileIf file)
Checks to see if the file is empty. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final IOFileFilter EMPTY
public static final IOFileFilter NOT_EMPTY
Method Detail |
---|
public boolean accept(FileIf file)
accept
in interface IOFileFilter
file
- the file or directory to check
true
if the file or directory
is empty, otherwise false
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |