public class ZipInputStreamZipEntrySource extends java.lang.Object implements ZipEntrySource
close() as soon as you're
done, to free up that memory!| Modifier and Type | Class and Description |
|---|---|
static class |
ZipInputStreamZipEntrySource.FakeZipEntry
So we can close the real zip entry and still
effectively work with it.
|
| Constructor and Description |
|---|
ZipInputStreamZipEntrySource(ZipSecureFile.ThresholdInputStream inp)
Reads all the entries from the ZipInputStream
into memory, and closes 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 java.util.zip.ZipEntry> |
getEntries()
Returns an Enumeration of all the Entries
|
java.io.InputStream |
getInputStream(java.util.zip.ZipEntry zipEntry)
Returns an InputStream of the decompressed
data that makes up the entry
|
boolean |
isClosed()
Has close been called already?
|
public ZipInputStreamZipEntrySource(ZipSecureFile.ThresholdInputStream inp) throws java.io.IOException
java.io.IOExceptionpublic java.util.Enumeration<? extends java.util.zip.ZipEntry> getEntries()
ZipEntrySourcegetEntries in interface ZipEntrySourcepublic java.io.InputStream getInputStream(java.util.zip.ZipEntry zipEntry)
ZipEntrySourcegetInputStream in interface ZipEntrySourcepublic void close()
ZipEntrySourceclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface ZipEntrySourcepublic boolean isClosed()
ZipEntrySourceisClosed in interface ZipEntrySourceCopyright 2018 The Apache Software Foundation or its licensors, as applicable.