public class TrueZipStorage extends java.lang.Object implements ZipFileStorage
| Constructor and Description |
|---|
TrueZipStorage(java.nio.file.Path file,
java.nio.charset.Charset encoding) |
| 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
|
public TrueZipStorage(java.nio.file.Path file,
java.nio.charset.Charset encoding)
throws java.io.IOException
java.io.IOExceptionpublic java.util.Iterator<ZipFileEntry> lstEntries()
ZipFileStoragelstEntries in interface ZipFileStorageIteratorpublic ZipFileEntry getEntry(java.lang.String name)
ZipFileStoragegetEntry in interface ZipFileStoragename - to be used when searching for the entryZipFileEntrypublic java.io.InputStream openInputStream(ZipFileEntry entry) throws java.io.IOException
ZipFileStorageopenInputStream in interface ZipFileStorageentry - to which the stream belongsInputStreamjava.io.IOException - if the access to the storage is not allowedpublic void close()
throws java.io.IOException
ZipFileStorageclose in interface ZipFileStorageclose in interface java.lang.AutoCloseablejava.io.IOException