Package com.sun.interview
Class FilesAndDirectoriesFileFilter
- java.lang.Object
-
- com.sun.interview.FilesAndDirectoriesFileFilter
-
- All Implemented Interfaces:
FileFilter
public class FilesAndDirectoriesFileFilter extends java.lang.Object implements FileFilter
A filter which accepts all files and directories.
-
-
Constructor Summary
Constructors Constructor Description FilesAndDirectoriesFileFilter(java.lang.String description)Create a filter which accepts all files and directories.
-
Method Summary
All Methods Instance Methods Concrete 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
public boolean accept(java.io.File f)
Description copied from interface:FileFilterCheck if a file is accepted by this filter.- Specified by:
acceptin 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:FileFilterCheck if (all) directories are accepted by this filter.- Specified by:
acceptsDirectoriesin interfaceFileFilter- Returns:
- true if directories are accepted by this filter
-
getDescription
public java.lang.String getDescription()
Get a short description for this filter.- Specified by:
getDescriptionin interfaceFileFilter- Returns:
- a short description of this filter
-
-