java.io
Interface FilenameFilter


public interface FilenameFilter

A filter interface for file names.

See Also:
File

Method Summary
 boolean accept(File dir, String name)
          Determines whether a name should be included in a file list.
 

Method Detail

accept

public boolean accept(File dir,
                      String name)
Determines whether a name should be included in a file list.

Parameters:
dir - the directory in which the file was found
name - the name of the file
Returns:
true if name should be included in file list; false otherwise.