Class FileFilterSelector

    • Constructor Detail

      • FileFilterSelector

        public FileFilterSelector()
        Constructs a new instance without a FileFilter.
      • FileFilterSelector

        public FileFilterSelector​(FileFilter fileFilter)
        Constructs a new instance with a FileFilter.
        Parameters:
        fileFilter - the FileFilter.
    • Method Detail

      • accept

        public boolean accept​(FileSelectInfo fileInfo)
                       throws java.lang.Exception
        Determines whether the file should be selected.
        Parameters:
        fileInfo - The file selection information.
        Returns:
        true if the file should be selected, false otherwise.
        Throws:
        java.lang.Exception - Thrown for file system errors or illegal argument exception.
      • includeFile

        public boolean includeFile​(FileSelectInfo fileInfo)
                            throws java.lang.Exception
        Determines if a file or folder should be selected.
        Specified by:
        includeFile in interface FileSelector
        Overrides:
        includeFile in class FileDepthSelector
        Parameters:
        fileInfo - The file selection information.
        Returns:
        true if the file or folder should be included, false otherwise.
        Throws:
        java.lang.Exception - if an error occurs.