|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.framework.util.WeakZipFileFactory.WeakZipFile
public class WeakZipFileFactory.WeakZipFile
This class wraps a ZipFile to making it possible to weakly close it; this means the underlying zip file will be automatically reopened on demand if anyone tries to use it.
Method Summary | |
---|---|
void |
close()
This method permanently closes the zip file. |
java.util.Enumeration<java.util.zip.ZipEntry> |
entries()
Returns an enumeration of zip entries from the zip file. |
java.util.zip.ZipEntry |
getEntry(java.lang.String name)
Returns the specified entry from the zip file. |
java.io.InputStream |
getInputStream(java.util.zip.ZipEntry ze)
Returns an input stream for the specified zip entry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.util.zip.ZipEntry getEntry(java.lang.String name)
name
- the name of the entry to return.
public java.util.Enumeration<java.util.zip.ZipEntry> entries()
public java.io.InputStream getInputStream(java.util.zip.ZipEntry ze) throws java.io.IOException
ze
- the zip entry whose input stream is to be retrieved.
java.io.IOException
- if the input stream cannot be opened.public void close() throws java.io.IOException
java.io.IOException
- if any error occurs while trying to close the
zip file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |