Class FileUtil.RegexFileFilter

  • All Implemented Interfaces:
    java.io.FileFilter
    Enclosing class:
    FileUtil

    public static class FileUtil.RegexFileFilter
    extends java.lang.Object
    implements java.io.FileFilter
    File filter that accepts files with the name specified by a regular expression.
    • Constructor Summary

      Constructors 
      Constructor Description
      RegexFileFilter​(java.lang.String pattern)
      Specifies the regular expression to filter files.
    • Method Summary

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

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

      • RegexFileFilter

        public RegexFileFilter​(@NotNull
                               java.lang.String pattern)
        Specifies the regular expression to filter files.
        Parameters:
        pattern - the regular expression, case insensitive.
    • Method Detail

      • accept

        public boolean accept​(java.io.File file)
        Specified by:
        accept in interface java.io.FileFilter