Class DirectoryFileFilter

    • Field Detail

      • DIRECTORY

        public static final IOFileFilter DIRECTORY
        Singleton instance of directory filter.
        Since:
        1.3
      • INSTANCE

        public static final IOFileFilter INSTANCE
        Singleton instance of directory filter. Please use the identical DirectoryFileFilter.DIRECTORY constant. The new name is more JDK 1.5 friendly as it doesn't clash with other values when using static imports.
    • Method Detail

      • accept

        public boolean accept​(File file)
        Checks to see if the file is a directory.
        Specified by:
        accept in interface FileFilter
        Specified by:
        accept in interface IOFileFilter
        Overrides:
        accept in class AbstractFileFilter
        Parameters:
        file - the File to check
        Returns:
        true if the file is a directory