IFileFilter Interface
- public interface IFileFilter
This interface is very similar in function to the java.io.FileFilter class.
It provides a filtering mechanism for the FileSystemSvc's methods that
offer the user a way to filter returned lists of files, or in any situation
where a filter for an IFile is needed.
Several implementations are available:
- FileFilterAcceptAll - Accepts all files
- FileFilterBridge - Bridges between IFileFilter, javax.swing.FileFilter, and java.io.FileFilter.
- FileFilterExclude - Provide a list of patterns to exclude.
- FileFilterExtension - Filters on filename extension, like '.java'
- FileFilterFilesOnly - Only accepts files, not directories
- FileFilterName - Filters filenames on a substring (like FilenameFilter)
- FileFilterRegexName - Filters filenames on a regex pattern.
- FileFilterRegexPath - Filters paths on a regex pattern.
-
All Known Implementing Classes
-
FileFilterAcceptAll
, FileFilterAnd
, FileFilterBridge
, FileFilterDirectoriesOnly
, FileFilterExclude
, FileFilterExtension
, FileFilterFilesOnly
, FileFilterName
, FileFilterNot
, FileFilterOr
, FileFilterRegexName
, FileFilterRegexPath
public boolean |
-
accept (IFile file)
- This method should return true if the passed-in file is accepted by the
filter and false if the file should be filtered out.
|
accept(IFile) Method
public boolean accept(IFile
file)
This method should return true if the passed-in file is accepted by the
filter and false if the file should be filtered out.