Package java.io
Interface FilenameFilter
public interface FilenameFilter
An interface for filtering
File objects based on their names
or the directory they reside in.- See Also:
File,File.list(FilenameFilter)
-
Method Summary
-
Method Details
-
accept
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.
-