Class FileFilterDepthSelector

  • All Implemented Interfaces:
    org.apache.commons.vfs2.FileSelector

    public class FileFilterDepthSelector
    extends org.apache.commons.vfs2.FileDepthSelector
    A FileSelector that selects all files in a particular depth range, with filtering a file by the given FileFilter instance.
    • Constructor Detail

      • FileFilterDepthSelector

        public FileFilterDepthSelector​(org.apache.commons.vfs2.FileFilter fileFilter,
                                       int minDepth,
                                       int maxDepth)
    • Method Detail

      • includeFile

        public boolean includeFile​(org.apache.commons.vfs2.FileSelectInfo fileInfo)
                            throws Exception
        Specified by:
        includeFile in interface org.apache.commons.vfs2.FileSelector
        Overrides:
        includeFile in class org.apache.commons.vfs2.FileDepthSelector
        Throws:
        Exception
      • accept

        protected boolean accept​(org.apache.commons.vfs2.FileSelectInfo fileInfo)
                          throws org.apache.commons.vfs2.FileSystemException
        Check if fileInfo is acceptable by using the internal filter.
        Parameters:
        fileInfo - fileInfo
        Returns:
        true if fileInfo is acceptable by using the internal filter
        Throws:
        org.apache.commons.vfs2.FileSystemException