FileDocCategorySizeDatePackage
ZipFileRegistry.javaAPI DocGlassfish v2 API3099Fri May 04 22:34:40 BST 2007com.sun.jdo.api.persistence.enhancer.util

ZipFileRegistry

public class ZipFileRegistry extends Object
ZipFileRegistry provides a central point for lookup of zip files within the filter tool. It needs to be public because it's accessed from outside the filter.util package.

Fields Summary
private static Hashtable
zipFileMap
Constructors Summary
Methods Summary
public static java.util.zip.ZipFilegetZipFile(java.lang.String path)
Return a zip file which must already be open

    return (ZipFile) zipFileMap.get(path);
  
public static java.util.zip.ZipFileopenZipFile(java.io.File f)
Return a zip file which may already be open

 

              
      
       
    ZipFile zf = (ZipFile) zipFileMap.get(f.getPath());
    if (zf == null) {
      zf = new ZipFile(f);
      zipFileMap.put(zf.getName(), zf);
    }
    return zf;
  
public static java.util.EnumerationzipFiles()
Returns an enumeration of the zip files in the registry Each element is a ZipFile.

    return zipFileMap.elements();