java.lang.Object | +--java.io.FilenameFilter
boolean | accept(java.io.File dir, java.lang.String name)This method determines whether or not a given file should be included in a directory listing. |
public boolean accept(java.io.File dir, java.lang.String name)dir - The File instance for the directory being readname - The name of the file to testtrue if the file should be included in the list,
false otherwise.
File.list()method and by the filename dialog in AWT.The method in this interface determines if a particular file should or should not be included in the file listing.