Package java.io

Interface FileFilter


public interface FileFilter
An interface for filtering File objects based on their names or other information.
See Also:
File.listFiles(FileFilter)
  • Method Summary

    Modifier and Type Method Description
    boolean accept​(File pathname)
    Indicating whether a specific file should be included in a pathname list.
  • Method Details

    • accept

      boolean accept​(File pathname)
      Indicating whether a specific file should be included in a pathname list.
      Parameters:
      pathname - the abstract file to check.
      Returns:
      true if the file should be included, false otherwise.