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.
|
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.Copyright © 2006-2015 The Apache Software Foundation. All Rights Reserved.