Interface FileFilter

All Known Implementing Classes:
AllFilesFileFilter, DirectoryFileFilter, ExtensionFileFilter, FilesAndDirectoriesFileFilter

public interface FileFilter
An interface for filtering files.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    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.
  • Method Details

    • accept

      boolean accept(File f)
      Check if a file is accepted by this filter.
      Parameters:
      f - The file to be tested.
      Returns:
      true if the file is accepted by this filter
    • acceptsDirectories

      boolean acceptsDirectories()
      Check if (all) directories are accepted by this filter.
      Returns:
      true if directories are accepted by this filter
    • getDescription

      String getDescription()
      Get a short description for this filter.
      Returns:
      a short description of this filter