org.dlese.dpc.util
Class ZipFileFilter
java.lang.Object
org.dlese.dpc.util.ZipFileFilter
- All Implemented Interfaces:
- FileFilter
public class ZipFileFilter
- extends Object
- implements 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
Method Summary |
boolean |
accept(File file)
A FileFilter for zip files. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZipFileFilter
public ZipFileFilter()
accept
public boolean accept(File file)
- A FileFilter for zip files. Filters for files that end in '.zip' or '.ZIP'.
- Specified by:
accept
in interface FileFilter
- Parameters:
file
- The file in question
- Returns:
- True if isFile() is true and the file ends in '.zip' or '.ZIP'