FilenameFilterNameFilenameFilterSynopsis
DescriptionThe FilenameFilter interface is implemented by a class that wants to filter the filenames that should be included in a list of filenames. For example, the list() method of the File class can take a FilenameFilter object to filter the filenames that are listed. The java.awt.FileDialog class also uses a FilenameFilter to limit the choices that are presented to the user. Interface Declaration
public abstract interface java.io.FilenameFilter { // Methods public abstract boolean accept(File dir, String name); } Methodsacceptpublic abstract boolean accept(File dir, String name)
See AlsoFile |
|