public class WeakZipFileFactory.WeakZipFile extends Object
| Modifier and Type | Method and Description |
|---|---|
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.
|
Enumeration<String> |
names() |
public ZipEntry getEntry(String name)
name - the name of the entry to return.public Enumeration<ZipEntry> entries()
public Enumeration<String> names()
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.Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.