org.apache.solr.util

## Class RegexFileFilter

- java.lang.Object
- - org.apache.solr.util.RegexFileFilter

- All Implemented Interfaces:
    FileFilter

      public final class RegexFileFilter
      extends Object
      implements FileFilter

  Accepts any file whose name matches the pattern

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `RegexFileFilter(Pattern regex)`
    `RegexFileFilter(String regex)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `accept(File f)`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

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

- - ### Constructor Detail

    - #### RegexFileFilter

          public RegexFileFilter(String regex)

    - #### RegexFileFilter

          public RegexFileFilter(Pattern regex)

  - ### Method Detail

    - #### accept

          public boolean accept(File f)

      Specified by:
        `accept` in interface `FileFilter`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.