kirk.io
Class FolderFilter
java.lang.Object
kirk.io.FolderFilter
- All Implemented Interfaces:
- FileFilter
- public class FolderFilter
- extends Object
- implements FileFilter
This class is used for filtering out folders when using
java.io.File.listFiles(java.io.FileFilter)
.
- Version:
- 1
- Author:
- Berend "Kirk" Wouda
- See Also:
File.list(java.io.FilenameFilter)
Method Summary |
boolean |
accept(File file)
Returns whether when the passed file should be included in the listing. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FolderFilter
public FolderFilter()
accept
public boolean accept(File file)
- Returns whether when the passed file should be included in the listing. If it
is a folder, it should.
- Specified by:
accept
in interface FileFilter
- Parameters:
file
- The file to be checked upon.
- Returns:
- Whether the file is a folder.