public class ZipInputStreamZipEntrySource extends 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(ZipInputStream 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
|
Enumeration<? extends ZipEntry> |
getEntries()
Returns an Enumeration of all the Entries
|
InputStream |
getInputStream(ZipEntry zipEntry)
Returns an InputStream of the decompressed
data that makes up the entry
|
public ZipInputStreamZipEntrySource(ZipInputStream inp) throws IOException
IOException
public Enumeration<? extends ZipEntry> getEntries()
ZipEntrySource
getEntries
in interface ZipEntrySource
public InputStream getInputStream(ZipEntry zipEntry)
ZipEntrySource
getInputStream
in interface ZipEntrySource
public void close()
ZipEntrySource
close
in interface ZipEntrySource
Copyright © 2020. All rights reserved.