public class ZipFileZipEntrySource extends java.lang.Object implements ZipEntrySource
| Constructor and Description |
|---|
ZipFileZipEntrySource(org.apache.commons.compress.archivers.zip.ZipFile zipFile) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Indicates we are done with reading, and
resources may be freed
|
java.util.Enumeration<? extends org.apache.commons.compress.archivers.zip.ZipArchiveEntry> |
getEntries()
Returns an Enumeration of all the Entries
|
org.apache.commons.compress.archivers.zip.ZipArchiveEntry |
getEntry(java.lang.String path)
Return an entry by its path
|
java.io.InputStream |
getInputStream(org.apache.commons.compress.archivers.zip.ZipArchiveEntry entry)
Returns an InputStream of the decompressed
data that makes up the entry
|
boolean |
isClosed()
Has close been called already?
|
public ZipFileZipEntrySource(org.apache.commons.compress.archivers.zip.ZipFile zipFile)
public void close()
throws java.io.IOException
ZipEntrySourceclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface ZipEntrySourcejava.io.IOExceptionpublic boolean isClosed()
ZipEntrySourceisClosed in interface ZipEntrySourcepublic java.util.Enumeration<? extends org.apache.commons.compress.archivers.zip.ZipArchiveEntry> getEntries()
ZipEntrySourcegetEntries in interface ZipEntrySourcepublic java.io.InputStream getInputStream(org.apache.commons.compress.archivers.zip.ZipArchiveEntry entry)
throws java.io.IOException
ZipEntrySourcegetInputStream in interface ZipEntrySourcejava.io.IOExceptionpublic org.apache.commons.compress.archivers.zip.ZipArchiveEntry getEntry(java.lang.String path)
ZipEntrySourcegetEntry in interface ZipEntrySourcepath - the path in unix-notationnull if not foundCopyright 2018 The Apache Software Foundation or its licensors, as applicable.