com.generationjava.io.find
Class ZipFinder

java.lang.Object
  |
  +--com.generationjava.io.find.ZipFinder
All Implemented Interfaces:
Finder

public class ZipFinder
extends java.lang.Object
implements Finder

A Finder which finds files inside a Zip file. Will also work for jar files.


Constructor Summary
ZipFinder()
           
 
Method Summary
 void addFindListener(com.generationjava.io.find.FindListener fl)
           
 java.lang.String[] find(java.io.File zip)
           
 java.lang.String[] find(java.io.File zipfile, java.lang.String extension)
          Find all files in this zipfile which have the specified extension.
 boolean getIncludeDirectories()
           
 void notifyDirectoryFinished(java.io.File directory, java.lang.String[] files)
           
 void notifyDirectoryStarted(java.io.File directory)
           
 void notifyFileFound(java.io.File directory, java.lang.String file)
           
 void setIncludeDirectories(boolean bool)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipFinder

public ZipFinder()
Method Detail

setIncludeDirectories

public void setIncludeDirectories(boolean bool)

getIncludeDirectories

public boolean getIncludeDirectories()

find

public java.lang.String[] find(java.io.File zip)
Specified by:
find in interface Finder

find

public java.lang.String[] find(java.io.File zipfile,
                               java.lang.String extension)
Find all files in this zipfile which have the specified extension. If extension is null, then all files are returned. The specified extension should not contain the '.'

Specified by:
find in interface Finder

addFindListener

public void addFindListener(com.generationjava.io.find.FindListener fl)
Specified by:
addFindListener in interface Finder

notifyDirectoryStarted

public void notifyDirectoryStarted(java.io.File directory)

notifyDirectoryFinished

public void notifyDirectoryFinished(java.io.File directory,
                                    java.lang.String[] files)

notifyFileFound

public void notifyFileFound(java.io.File directory,
                            java.lang.String file)


Copyright © 2000-2003 OSJava. All Rights Reserved.