|
||||||||||
| 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. |
Enumeration<ZipEntry> |
entries()
Returns an enumeration of zip entries from the zip file. |
ZipEntry |
getEntry(String name)
Returns the specified entry from the zip file. |
InputStream |
getInputStream(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 ZipEntry getEntry(String name)
name - the name of the entry to return.
public Enumeration<ZipEntry> entries()
public InputStream getInputStream(ZipEntry ze)
throws IOException
ze - the zip entry whose input stream is to be retrieved.
IOException - if the input stream cannot be opened.
public void close()
throws IOException
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 | |||||||||