Build 1.0_r1(from source)

java.io
Interface FilenameFilter


public interface FilenameFilter

FilenameFilter is an interface which declares methods for filtering file names in the list method of File.

See Also:
File, File.list(FilenameFilter)

Method Summary
 boolean accept(File dir, String filename)
          Returns a boolean if a specific filename matches a filter.
 

Method Detail

accept

boolean accept(File dir,
               String filename)
Returns a boolean if a specific filename matches a filter.

Parameters:
dir - the directory in which the filename was found.
filename - the name of the file in dir to test.
Returns:
boolean true if the filename matches the filter and can be included in the list, false otherwise.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature