Package org.dlese.dpc.util
Class ZipFileFilter
java.lang.Object
org.dlese.dpc.util.ZipFileFilter
- All Implemented Interfaces:
FileFilter
A FileFilter for zip files. Filters for files that end in '.zip' or '.ZIP' and are files, not directories.
Instances of this class may be passed to the
File.listFiles(FileFilter) method of the
File class.- Version:
- $Id: ZipFileFilter.java,v 1.2 2009/03/20 23:34:00 jweather Exp $
- Author:
- John Weatherley
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ZipFileFilter
public ZipFileFilter()
-
-
Method Details
-
accept
A FileFilter for zip files. Filters for files that end in '.zip' or '.ZIP'.- Specified by:
acceptin interfaceFileFilter- Parameters:
file- The file in question- Returns:
- True if isFile() is true and the file ends in '.zip' or '.ZIP'
-