Class RegexPathFilter

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

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

      Fields 
      Modifier and Type Field Description
      static java.lang.String SEPARATOR  
    • Constructor Summary

      Constructors 
      Constructor Description
      RegexPathFilter​(java.lang.String pattern)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(java.io.File dir)  
      boolean accept​(java.io.File dir, java.lang.String name)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SEPARATOR

        public static final java.lang.String SEPARATOR
    • Constructor Detail

      • RegexPathFilter

        public RegexPathFilter​(java.lang.String pattern)
    • Method Detail

      • accept

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

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