Class AbstractFileFilter

    • Constructor Detail

      • AbstractFileFilter

        public AbstractFileFilter​(boolean acceptDirectories,
                                  String description,
                                  String... extensions)
        Constructor.
        Parameters:
        acceptDirectories - is true to permit to this file filter to accept directories; false if the directories should not match.
        description - is the description of the file filter.
        extensions - are the supported extensions.
    • Method Detail

      • accept

        @Pure
        public final boolean accept​(File file)
        Specified by:
        accept in interface FileFilter
      • getDescription

        @Pure
        public final String getDescription()
        Description copied from interface: FileFilter
        Replies the description associated to this file filter.
        Specified by:
        getDescription in interface FileFilter
        Returns:
        a string that is describing the file filtering.
      • getExtensions

        @Pure
        public final String[] getExtensions()
        Description copied from interface: FileFilter
        Replies the extensions supported by this file filter.
        Specified by:
        getExtensions in interface FileFilter
        Returns:
        the extensions.