public class WeakZipFileFactory.WeakZipFile
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
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.
|
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.Copyright © 2012. All Rights Reserved.