public class ZipFileZipEntrySource extends Object implements ZipEntrySource
| Constructor and Description |
|---|
ZipFileZipEntrySource(ZipFile zipFile) |
| 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 entry)
Returns an InputStream of the decompressed
data that makes up the entry
|
boolean |
isClosed()
Has close been called already?
|
public ZipFileZipEntrySource(ZipFile zipFile)
public void close()
throws IOException
ZipEntrySourceclose in interface Closeableclose in interface AutoCloseableclose in interface ZipEntrySourceIOExceptionpublic boolean isClosed()
ZipEntrySourceisClosed in interface ZipEntrySourcepublic Enumeration<? extends ZipArchiveEntry> getEntries()
ZipEntrySourcegetEntries in interface ZipEntrySourcepublic InputStream getInputStream(ZipArchiveEntry entry) throws IOException
ZipEntrySourcegetInputStream in interface ZipEntrySourceIOExceptionpublic ZipArchiveEntry getEntry(String path)
ZipEntrySourcegetEntry in interface ZipEntrySourcepath - the path in unix-notationnull if not foundCopyright © 2010 - 2020 Adobe. All Rights Reserved