com.pdfunit.filter.file

## Class FilenameMatchingFilter

- java.lang.Object
- - com.pdfunit.filter.file.FilenameMatchingFilter

- All Implemented Interfaces:
    FilenameFilter

      @DoNotObfuscate
      public class FilenameMatchingFilter
      extends java.lang.Object
      implements FilenameFilter

  This class filters file names using regular expressions. The method accept(..) returns true for a file, that matches the regular expression.
  Since:
    2016.05
  Author:
    Carsten Siedentop, April 2016

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `FilenameMatchingFilter(java.lang.String regexForName)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `accept(java.lang.String fileName)` THis method returns true when the given file name matches the regular expression taken passed to this class by the constructor.
    `java.lang.String` | `getValue()`

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

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

- - ### Constructor Detail

    - #### FilenameMatchingFilter

          @Guarded
          public FilenameMatchingFilter(java.lang.String regexForName)

  - ### Method Detail

    - #### accept

          public boolean accept(java.lang.String fileName)

      THis method returns true when the given file name matches the regular expression taken passed to this class by the constructor.
      Specified by:
        `accept` in interface `FilenameFilter`

    - #### getValue

          public java.lang.String getValue()

      Specified by:
        `getValue` in interface `FilenameFilter`

Copyright (C) PDFUnit.com. See here for license.