public class ZipInputStreamZipEntrySource extends 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
|
Enumeration<? extends ZipArchiveEntry> |
getEntries()
Returns an Enumeration of all the Entries
|
ZipArchiveEntry |
getEntry(String path)
Return an entry by its path
|
InputStream |
getInputStream(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 IOException
IOExceptionpublic Enumeration<? extends ZipArchiveEntry> getEntries()
ZipEntrySourcegetEntries in interface ZipEntrySourcepublic InputStream getInputStream(ZipArchiveEntry zipEntry)
ZipEntrySourcegetInputStream in interface ZipEntrySourcepublic void close()
ZipEntrySourceclose in interface Closeableclose in interface AutoCloseableclose in interface ZipEntrySourcepublic boolean isClosed()
ZipEntrySourceisClosed in interface ZipEntrySourcepublic ZipArchiveEntry getEntry(String path)
ZipEntrySourcegetEntry in interface ZipEntrySourcepath - the path in unix-notationnull if not foundCopyright © 2010 - 2020 Adobe. All Rights Reserved