Package org.apache.uima.pear.util

# Class FileUtil.NameFileFilter

java.lang.Object
org.apache.uima.pear.util.FileUtil.NameFileFilter

All Implemented Interfaces:
  `FileFilter`

Enclosing class:
  FileUtil

public static class FileUtil.NameFileFilter extends Object implements FileFilter
The `NameFileFilter` class allows to filter files based on specified file name.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `NameFileFilter(String fileName)`
  Constructs `NameFileFilter` object for a given file name.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `accept(File file)`

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

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

- ## Constructor Details

  - ### NameFileFilter

    public NameFileFilter(String fileName)
    Constructs `NameFileFilter` object for a given file name.
    Parameters:
      `fileName` - The given file name for filtering.

- ## Method Details

  - ### accept

    public boolean accept(File file)
    Specified by:
      `accept` in interface `FileFilter`
    Parameters:
      `file` - The given file to be tested.
    Returns:
      `true` if the given file should be accepted, `false` otherwise.