Class RegexPathFilter

java.lang.Object
adalid.util.io.RegexPathFilter
All Implemented Interfaces:
FileFilter, FilenameFilter, PathMatcher, org.apache.commons.io.file.PathFilter, org.apache.commons.io.filefilter.IOFileFilter

public class RegexPathFilter extends Object implements org.apache.commons.io.filefilter.IOFileFilter
Author:
Jorge Campins
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

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

    EMPTY_STRING_ARRAY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(File dir)
     
    boolean
    accept(File dir, String name)
     

    Methods inherited from class java.lang.Object

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

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

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

    • SEPARATOR

      public static final String SEPARATOR
  • Constructor Details

    • RegexPathFilter

      public RegexPathFilter(String pattern)
  • Method Details

    • accept

      public boolean accept(File dir)
      Specified by:
      accept in interface FileFilter
      Specified by:
      accept in interface org.apache.commons.io.filefilter.IOFileFilter
    • accept

      public boolean accept(File dir, String name)
      Specified by:
      accept in interface FilenameFilter
      Specified by:
      accept in interface org.apache.commons.io.filefilter.IOFileFilter