02/28/2005
 

com.epicentric.common
Class FileExtensionFilter

java.lang.Object
  |
  +--com.epicentric.common.FileExtensionFilter
All Implemented Interfaces:
FilenameFilter

Deprecated. as of version 4.5, to be removed in 8.0 or later. Replaced with FileExtensionFilter

public class FileExtensionFilter
extends Object
implements FilenameFilter

Filter for files of a particular extension or set of extensions. If you just need to filter for a single extension, use the constructor that accepts a string. If you want to accept any of multiple extensions, use the string array constructor. Extension matching will be case-insensitive.


Constructor Summary
FileExtensionFilter(String extension)
          Deprecated. Use this constructor to create a filter for just a single extension.
FileExtensionFilter(String[] extensions)
          Deprecated. Use this constructor to create a filter for multiple extensions.
 
Method Summary
 boolean accept(File parentDir, String filename)
          Deprecated. Accept any file that ends with one of our extensions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileExtensionFilter

public FileExtensionFilter(String extension)
Deprecated. 
Use this constructor to create a filter for just a single extension.

FileExtensionFilter

public FileExtensionFilter(String[] extensions)
Deprecated. 
Use this constructor to create a filter for multiple extensions.
Method Detail

accept

public boolean accept(File parentDir,
                      String filename)
Deprecated. 
Accept any file that ends with one of our extensions.
Specified by:
accept in interface FilenameFilter

02/28/2005
 

Copyright and Trademark Notices