public class ZipInputStreamZipEntrySource extends java.lang.Object implements ZipEntrySource
close() as soon as you're
done, to free up that memory!| Constructor and Description |
|---|
ZipInputStreamZipEntrySource(ZipArchiveThresholdInputStream inp)
Reads all the entries from the ZipInputStream
into memory, and don't close (since POI 4.0.1) the source stream.
|
| 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 zipEntry)
Returns an InputStream of the decompressed
data that makes up the entry
|
boolean |
isClosed()
Has close been called already?
|
public ZipInputStreamZipEntrySource(ZipArchiveThresholdInputStream inp) throws java.io.IOException
java.io.IOExceptionpublic 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 zipEntry)
ZipEntrySourcegetInputStream in interface ZipEntrySourcepublic 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 org.apache.commons.compress.archivers.zip.ZipArchiveEntry getEntry(java.lang.String path)
ZipEntrySourcegetEntry in interface ZipEntrySourcepath - the path in unix-notationnull if not foundCopyright 2021 The Apache Software Foundation or its licensors, as applicable.