Class RegexPathFilter

  • All Implemented Interfaces:
    FileFilter, FilenameFilter, org.apache.commons.io.filefilter.IOFileFilter

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

      • SEPARATOR

        public static final String SEPARATOR
    • Constructor Detail

      • RegexPathFilter

        public RegexPathFilter​(String pattern)
    • Method Detail

      • 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