Class FileFilterDepthSelector

java.lang.Object
org.apache.commons.vfs2.FileDepthSelector
org.onehippo.forge.content.exim.core.util.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 Summary

    Constructors
    Constructor
    Description
    FileFilterDepthSelector(org.apache.commons.vfs2.FileFilter fileFilter, int minDepth, int maxDepth)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    accept(org.apache.commons.vfs2.FileSelectInfo fileInfo)
    Check if fileInfo is acceptable by using the internal filter.
    boolean
    includeFile(org.apache.commons.vfs2.FileSelectInfo fileInfo)

    Methods inherited from class org.apache.commons.vfs2.FileDepthSelector

    traverseDescendents

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FileFilterDepthSelector

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

    • 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