Package info.freelibrary.util
Class DirFileFilter
- java.lang.Object
-
- info.freelibrary.util.DirFileFilter
-
- All Implemented Interfaces:
FilenameFilter
public class DirFileFilter extends Object implements FilenameFilter
A filter that returns only directories from a file system scan.
-
-
Constructor Summary
Constructors Constructor Description DirFileFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(File aDir, String aFileName)
Determines whichFile
s should be accepted.
-
-
-
Method Detail
-
accept
public boolean accept(File aDir, String aFileName)
Determines whichFile
s should be accepted.- Specified by:
accept
in interfaceFilenameFilter
- Parameters:
aDir
- A directory in which to test the filesaFileName
- A file name in the directory
-
-