|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FilenameFilter
This interface has one method which is used for filtering filenames
returned in a directory listing. It is currently used by the
File.list(FilenameFilter) 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.
File.listFiles(java.io.FilenameFilter),
FileDialog.setFilenameFilter(java.io.FilenameFilter)| Method Summary | |
|---|---|
boolean |
accept(File dir,
String name)
This method determines whether or not a given file should be included in a directory listing. |
| Method Detail |
|---|
boolean accept(File dir,
String name)
dir - The File instance for the directory being readname - The name of the file to test
true if the file should be included in the list,
false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||