|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.armatiek.infofuze.stream.filesystem.filefilter.HiddenFileFilter
public class HiddenFileFilter
This filter accepts File
s that are hidden.
Example, showing how to print out a list of the
current directory's hidden files:
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 |
HIDDEN
Singleton instance of hidden filter |
static IOFileFilter |
VISIBLE
Singleton instance of visible filter |
Method Summary | |
---|---|
boolean |
accept(FileIf file)
Checks to see if the file is hidden. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final IOFileFilter HIDDEN
public static final IOFileFilter VISIBLE
Method Detail |
---|
public boolean accept(FileIf file)
accept
in interface IOFileFilter
file
- the File to check
true
if the file is
hidden, otherwise false
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |