DLESE Tools
v1.6.0

org.dlese.dpc.util
Class ZipFileFilter

java.lang.Object
  extended by 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 Summary
ZipFileFilter()
           
 
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
 

Constructor Detail

ZipFileFilter

public ZipFileFilter()
Method Detail

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'

DLESE Tools
v1.6.0