Package com.sun.interview
Interface FileFilter
-
- All Known Implementing Classes:
AllFilesFileFilter,DirectoryFileFilter,ExtensionFileFilter,FilesAndDirectoriesFileFilter
public interface FileFilterAn interface for filtering files.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaccept(java.io.File f)Check if a file is accepted by this filter.booleanacceptsDirectories()Check if (all) directories are accepted by this filter.java.lang.StringgetDescription()Get a short description for this filter.
-
-
-
Method Detail
-
accept
boolean accept(java.io.File f)
Check if a file is accepted by this filter.- Parameters:
f- The file to be tested.- Returns:
- true if the file is accepted by this filter
-
acceptsDirectories
boolean acceptsDirectories()
Check if (all) directories are accepted by this filter.- Returns:
- true if directories are accepted by this filter
-
getDescription
java.lang.String getDescription()
Get a short description for this filter.- Returns:
- a short description of this filter
-
-