Package com.sun.interview
Class DirectoryFileFilter
java.lang.Object
com.sun.interview.DirectoryFileFilter
- All Implemented Interfaces:
FileFilter
A filter which accepts directories.
-
Constructor Summary
ConstructorsConstructorDescriptionDirectoryFileFilter
(String description) Create a filter which accepts directories. -
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
-
DirectoryFileFilter
Create a filter which accepts directories.- 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
-