java.io
Interface FileFilter
java.lang.Object
|
+--java.io.FileFilter
public interface FileFilter
This interface has one method which is used for filtering pathnames
returned in a pathname listing. It is currently used by the
File.listFiles() method.
The method in this interface determines if a particular pathname should
or should not be included in the pathname listing.
Author:- Aaron M. Renn (arenn@urbanophile.com)
accept
public boolean accept(java.io.File pathname) This method determines whether or not a given pathname should be included
in a pathname listing.
Parameters:
Returns:
true if the path should be included in the list, false otherwise.
File.listFiles()method.The method in this interface determines if a particular pathname should or should not be included in the pathname listing.