Class DeepRegexFileFilter

java.lang.Object
org.apache.commons.io.filefilter.AbstractFileFilter
org.bonitasoft.engine.DeepRegexFileFilter
All Implemented Interfaces:
FileFilter, FilenameFilter, FileVisitor<Path>, PathMatcher, org.apache.commons.io.file.PathFilter, org.apache.commons.io.file.PathVisitor, org.apache.commons.io.filefilter.IOFileFilter

public class DeepRegexFileFilter extends org.apache.commons.io.filefilter.AbstractFileFilter
Identical to RegexFileFilter, but accept files based on the complete file path and name, not only its name.
Author:
Emmanuel Duchastenier
  • Field Summary

    Fields inherited from interface org.apache.commons.io.filefilter.IOFileFilter

    EMPTY_STRING_ARRAY
  • Constructor Summary

    Constructors
    Constructor
    Description
    DeepRegexFileFilter(File parentDir, String pattern)
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(File file)
     

    Methods inherited from class org.apache.commons.io.filefilter.AbstractFileFilter

    accept, handle, postVisitDirectory, preVisitDirectory, toString, visitFile, visitFileFailed

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.commons.io.filefilter.IOFileFilter

    accept, and, matches, negate, or
  • Constructor Details

    • DeepRegexFileFilter

      public DeepRegexFileFilter(String pattern)
    • DeepRegexFileFilter

      public DeepRegexFileFilter(File parentDir, String pattern)
  • Method Details

    • accept

      public boolean accept(File file)
      Specified by:
      accept in interface FileFilter
      Specified by:
      accept in interface org.apache.commons.io.filefilter.IOFileFilter
      Overrides:
      accept in class org.apache.commons.io.filefilter.AbstractFileFilter