Package org.jjazz.utilities.api
Class ExtensionFileFilter
java.lang.Object
org.jjazz.utilities.api.ExtensionFileFilter
- All Implemented Interfaces:
FilenameFilter
A simple file filter based on file extensions .
-
Constructor Summary
ConstructorDescriptionExtensionFileFilter
(String[] extensions) ExtensionFileFilter
(String extension, String... extensions) -
Method Summary
-
Constructor Details
-
ExtensionFileFilter
- Parameters:
extensions
- Strings such as "exe" or ".exe".
-
ExtensionFileFilter
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceFilenameFilter
- Parameters:
dir
-name
-- Returns:
- True if name ends with one of this filter extensions, ignoring case.
-