Package com.sun.interview
Class AllFilesFileFilter
java.lang.Object
com.sun.interview.AllFilesFileFilter
- All Implemented Interfaces:
FileFilter
A filter which accepts all (non-directory) files.
-
Constructor Summary
ConstructorsConstructorDescriptionAllFilesFileFilter
(String description) Create a filter which accepts all (non-directory) 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.
-
Constructor Details
-
AllFilesFileFilter
Create a filter which accepts all (non-directory) files.- Parameters:
description
- A short string describing the filter.
-
-
Method Details
-
accept
Description copied from interface:FileFilter
Check if a file is accepted by this filter.- Specified by:
accept
in interfaceFileFilter
- Parameters:
f
- The file to be tested.- Returns:
- true if the file is accepted by this filter
-
acceptsDirectories
public boolean acceptsDirectories()Description copied from interface:FileFilter
Check if (all) directories are accepted by this filter.- Specified by:
acceptsDirectories
in interfaceFileFilter
- Returns:
- true if directories are accepted by this filter
-
getDescription
Get a short description for this filter.- Specified by:
getDescription
in interfaceFileFilter
- Returns:
- a short description of this filter
-