Class ExtensionFileFilter

java.lang.Object
org.jjazz.utilities.api.ExtensionFileFilter
All Implemented Interfaces:
FilenameFilter

public class ExtensionFileFilter extends Object implements FilenameFilter
A simple file filter based on file extensions .
  • Constructor Details

    • ExtensionFileFilter

      public ExtensionFileFilter(String[] extensions)
      Parameters:
      extensions - Strings such as "exe" or ".exe".
    • ExtensionFileFilter

      public ExtensionFileFilter(String extension, String... extensions)
  • Method Details

    • accept

      public boolean accept(File dir, String name)
      Specified by:
      accept in interface FilenameFilter
      Parameters:
      dir -
      name -
      Returns:
      True if name ends with one of this filter extensions, ignoring case.