Package java.io
Interface FilenameFilter
-
public interface FilenameFilterAn interface for filteringFileobjects based on their names or the directory they reside in.- See Also:
File,File.list(FilenameFilter)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaccept(File dir, String filename)Indicates if a specific filename matches this filter.
-
-
-
Method Detail
-
accept
boolean accept(File dir, String filename)
Indicates if a specific filename matches this filter.- Parameters:
dir- the directory in which thefilenamewas found.filename- the name of the file indirto test.- Returns:
trueif the filename matches the filter and can be included in the list,falseotherwise.
-
-