com.pdfunit.filter.file

## Class FilenameContainingFilter

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

- All Implemented Interfaces:
    FilenameFilter

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

  This class filters file names. When a given string is part of a file name, the file name is accepted.
  Since:
    2016.05
  Author:
    Carsten Siedentop, April 2016

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `FilenameContainingFilter(java.lang.String nameSubstring)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `accept(java.lang.String fileName)` THis method returns true when the given file name contains the value 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

    - #### FilenameContainingFilter

          @Guarded
          public FilenameContainingFilter(java.lang.String nameSubstring)

  - ### Method Detail

    - #### accept

          public boolean accept(java.lang.String fileName)

      THis method returns true when the given file name contains the value 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.