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
  • Constructor Details

    • ZipFileFilter

      public ZipFileFilter()
  • Method Details

    • 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'