public interface ZipFileStorage
extends java.lang.AutoCloseable
Each handler able to read a ZIP file must implement this interface.
We could see this class as an adapter of the ZipFile
class.
Modifier and Type | Method and Description |
---|---|
void |
close()
Restricts the close exception to IOException
|
ZipFileEntry |
getEntry(java.lang.String name)
Returns the entry which matches the given name, where the name must follow
the ZIP conventions.
|
java.util.Iterator<ZipFileEntry> |
lstEntries()
Returns all the entries of this storage
|
java.io.InputStream |
openInputStream(ZipFileEntry entry)
Opens a input stream to the given entry
|
java.util.Iterator<ZipFileEntry> lstEntries()
Iterator
ZipFileEntry getEntry(java.lang.String name)
name
- to be used when searching for the entryZipFileEntry
java.io.InputStream openInputStream(ZipFileEntry entry) throws java.io.IOException
entry
- to which the stream belongsInputStream
java.io.IOException
- if the access to the storage is not allowedvoid close() throws java.io.IOException
close
in interface java.lang.AutoCloseable
java.io.IOException