kirk.io
Class FolderFilter

java.lang.Object
  extended bykirk.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)

Constructor Summary
FolderFilter()
           
 
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
 

Constructor Detail

FolderFilter

public FolderFilter()
Method Detail

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.