public interface FilenameFilter
list method of class File, and by the Abstract Window Toolkit's
file dialog component.File,
File.list(java.io.FilenameFilter)| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(File dir,
java.lang.String name)
Tests if a specified file should be included in a file list.
|
boolean accept(File dir, java.lang.String name)
dir - the directory in which the file was found.name - the name of the file.true if and only if the name should be included in the file list; false
otherwise.