java.io

Interface 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(FileFilter) method.

The method in this interface determines if a particular pathname should or should not be included in the pathname listing.

See Also: listFiles

Method Summary
booleanaccept(File pathname)
This method determines whether or not a given pathname should be included in a pathname listing.

Method Detail

accept

public boolean accept(File pathname)
This method determines whether or not a given pathname should be included in a pathname listing.

Parameters: pathname The pathname to test

Returns: true if the path should be included in the list, false otherwise.