net.i2p.util

## Class FileSuffixFilter

- java.lang.Object
- - net.i2p.util.FileSuffixFilter

- All Implemented Interfaces:
    FileFilter

      public class FileSuffixFilter
      extends Object
      implements FileFilter

  A FileFilter that accepts regular files with a suffix and optionally a prefix, case-insensitive.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `FileSuffixFilter(String suffix)` A filter that accepts regular files that end with suffix, case-insensitive.
    `FileSuffixFilter(String prefix, String suffix)` A filter that accepts regular files that start with prefix and end with suffix, case-insensitive.

  - ### Method Summary

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

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

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

- - ### Constructor Detail

    - #### FileSuffixFilter

          public FileSuffixFilter(String suffix)

      A filter that accepts regular files that end with suffix, case-insensitive.

    - #### FileSuffixFilter

          public FileSuffixFilter(String prefix,
                                  String suffix)

      A filter that accepts regular files that start with prefix and end with suffix, case-insensitive.

  - ### Method Detail

    - #### accept

          public boolean accept(File file)

      Specified by:
        `accept` in interface `FileFilter`