org.omegahat.Environment.Databases
Class ZipNameFilter

java.lang.Object
  |
  +--org.omegahat.Environment.Databases.ZipNameFilter
All Implemented Interfaces:
java.io.FilenameFilter

public class ZipNameFilter
extends java.lang.Object
implements java.io.FilenameFilter

FilenameFilter that filters out files whose extension is not the appropriate zip/compression string.

See Also:
PersistentObjectDatabase.

Field Summary
protected  java.lang.String extension
           
 
Constructor Summary
ZipNameFilter()
           
ZipNameFilter(java.lang.String ext)
           
 
Method Summary
 boolean accept(java.io.File dir, java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

extension

protected java.lang.String extension
Constructor Detail

ZipNameFilter

public ZipNameFilter(java.lang.String ext)

ZipNameFilter

public ZipNameFilter()
Method Detail

accept

public boolean accept(java.io.File dir,
                      java.lang.String name)
Specified by:
accept in interface java.io.FilenameFilter