kirk.io
Class NormalFileFilter

java.lang.Object
  extended bykirk.io.NormalFileFilter
All Implemented Interfaces:
FileFilter

public class NormalFileFilter
extends Object
implements FileFilter

This class is used for filtering out normal files when using java.io.File.listFiles(java.io.FileFilter).

Version:
1
Author:
Berend "Kirk" Wouda
See Also:
File.list(java.io.FilenameFilter)

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

NormalFileFilter

public NormalFileFilter()
Method Detail

accept

public boolean accept(File file)
Returns whether when the passed file should be included in the listing. If it is a normal file, it should.

Specified by:
accept in interface FileFilter
Parameters:
file - The file to be checked upon.
Returns:
Whether the file is a normal file.