Class FileDepthSelector

    • Constructor Summary

      Constructors 
      Constructor Description
      FileDepthSelector()
      Creates a selector with the same minimum and maximum depths of 0.
      FileDepthSelector​(int minMaxDepth)
      Creates a selector with the same minimum and maximum depths.
      FileDepthSelector​(int minDepth, int maxDepth)
      Creates a selector with the given minimum and maximum depths.
    • Constructor Detail

      • FileDepthSelector

        public FileDepthSelector​(int minDepth,
                                 int maxDepth)
        Creates a selector with the given minimum and maximum depths.
        Parameters:
        minDepth - minimum depth
        maxDepth - maximum depth
      • FileDepthSelector

        public FileDepthSelector​(int minMaxDepth)
        Creates a selector with the same minimum and maximum depths.
        Parameters:
        minMaxDepth - minimum and maximum depth
        Since:
        2.1
      • FileDepthSelector

        public FileDepthSelector()
        Creates a selector with the same minimum and maximum depths of 0.
        Since:
        2.1
    • Method Detail

      • includeFile

        public boolean includeFile​(FileSelectInfo fileInfo)
        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 included, false otherwise.
      • traverseDescendents

        public boolean traverseDescendents​(FileSelectInfo fileInfo)
        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, false otherwise.