Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.uima.pear.util
Class FileUtil.DirFileFilter

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

All Implemented Interfaces:
  FileFilter

Enclosing class:
  FileUtil

    public static class FileUtil.DirFileFilter

extends Object
implements FileFilter

The `DirFileFilter` class allows to filter files based on specified directory path and filename extension.

Constructor Summary
`FileUtil.DirFileFilter(String dirPath, String fileExt)` Constructs `DirFileFilter` object for specified directory and file extension.

Method Summary
`boolean` | `accept(File file)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### FileUtil.DirFileFilter

    public FileUtil.DirFileFilter(String dirPath,
                                  String fileExt)

  Constructs `DirFileFilter` object for specified directory and file extension.

  Parameters:
    `dirPath` - The given directory.
    `fileExt` - The given file extension.

Method Detail

### 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2007 The Apache Software Foundation. All Rights Reserved.