Package com.sun.interview
Interface FileFilter
- All Known Implementing Classes:
AllFilesFileFilter
,DirectoryFileFilter
,ExtensionFileFilter
,FilesAndDirectoriesFileFilter
public interface FileFilter
An interface for filtering files.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Check if a file is accepted by this filter.boolean
Check if (all) directories are accepted by this filter.Get a short description for this filter.
-
Method Details
-
accept
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
String getDescription()Get a short description for this filter.- Returns:
- a short description of this filter
-