com.aliasi.io
Class FileNameFilter

java.lang.Object
  extended by com.aliasi.io.FileNameFilter
All Implemented Interfaces:
FileFilter
Direct Known Subclasses:
FileExtensionFilter

Deprecated. Implement filters directly.

@Deprecated
public abstract class FileNameFilter
extends Object
implements FileFilter

An abstract file filter that accepts files based on the filename. May be configured to accept all directories. Concrete subclasses must implement accept(String).

Since:
LingPipe1.0
Version:
3.9.1
Author:
Bob Carpenter

Constructor Summary
FileNameFilter()
          Deprecated. Construct a file name filter that accepts directories.
FileNameFilter(boolean acceptDirectories)
          Deprecated. Construct a file name filter that accepts directories as specified.
 
Method Summary
 boolean accept(File file)
          Deprecated. Return true if a file is acceptable to this filter.
protected abstract  boolean accept(String fileName)
          Deprecated. Return true if files with the specified name should be accepted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileNameFilter

public FileNameFilter()
Deprecated. 
Construct a file name filter that accepts directories.


FileNameFilter

public FileNameFilter(boolean acceptDirectories)
Deprecated. 
Construct a file name filter that accepts directories as specified.

Parameters:
acceptDirectories - true if this filter should accept all directories.
Method Detail

accept

public final boolean accept(File file)
Deprecated. 
Return true if a file is acceptable to this filter. A file is accepted if it is a directory and this filter accepts all directories, or if it is a regular file that is accepted by accept(String).

Specified by:
accept in interface FileFilter
Parameters:
file - File to test for acceptance.
Returns:
true if file name is acceptable.

accept

protected abstract boolean accept(String fileName)
Deprecated. 
Return true if files with the specified name should be accepted.

Parameters:
fileName - Name of file to test for acceptance.
Returns:
true if file name is acceptable.