Class FileTypeSelector

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private FileType type
      The FileType
    • Constructor Summary

      Constructors 
      Constructor Description
      FileTypeSelector​(FileType type)
      Creates a new selector for the given file type.
    • Field Detail

      • type

        private final FileType type
        The FileType
    • Constructor Detail

      • FileTypeSelector

        public FileTypeSelector​(FileType type)
        Creates a new selector for the given file type.
        Parameters:
        type - The file type to select
    • Method Detail

      • 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
        Parameters:
        fileInfo - The file selection information.
        Returns:
        true if the file or folder should be selected.
        Throws:
        FileSystemException - if an error occurs
        java.lang.Exception - if an error occurs.
      • traverseDescendents

        public boolean traverseDescendents​(FileSelectInfo fileInfo)
                                    throws java.lang.Exception
        Determines whether a folder should be traversed.
        Specified by:
        traverseDescendents in interface FileSelector
        Parameters:
        fileInfo - The file selection information.
        Returns:
        true if the file or folder should be traversed.
        Throws:
        java.lang.Exception - if an error occurs.