Class DeepRegexFileFilter

  • All Implemented Interfaces:
    java.io.FileFilter, java.io.FilenameFilter, 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(java.io.File file)  
      • Methods inherited from class org.apache.commons.io.filefilter.AbstractFileFilter

        accept, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DeepRegexFileFilter

        public DeepRegexFileFilter​(java.lang.String pattern)
      • DeepRegexFileFilter

        public DeepRegexFileFilter​(java.io.File parentDir,
                                   java.lang.String pattern)
    • Method Detail

      • accept

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