com.sun.jdo.api.persistence.enhancer.util
Class ZipFileRegistry

java.lang.Object
  extended by com.sun.jdo.api.persistence.enhancer.util.ZipFileRegistry

public class ZipFileRegistry
extends java.lang.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.


Constructor Summary
ZipFileRegistry()
           
 
Method Summary
static java.util.zip.ZipFile getZipFile(java.lang.String path)
          Return a zip file which must already be open
static java.util.zip.ZipFile openZipFile(java.io.File f)
          Return a zip file which may already be open
static java.util.Enumeration zipFiles()
          Returns an enumeration of the zip files in the registry Each element is a ZipFile.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipFileRegistry

public ZipFileRegistry()
Method Detail

openZipFile

public static java.util.zip.ZipFile openZipFile(java.io.File f)
                                         throws java.io.FileNotFoundException,
                                                java.io.IOException
Return a zip file which may already be open

Throws:
java.io.FileNotFoundException
java.io.IOException

getZipFile

public static java.util.zip.ZipFile getZipFile(java.lang.String path)
Return a zip file which must already be open


zipFiles

public static java.util.Enumeration zipFiles()
Returns an enumeration of the zip files in the registry Each element is a ZipFile.



Copyright © 2012 GlassFish Community. All Rights Reserved.