@Beta public final class AesZipFileZipEntrySource extends Object implements ZipEntrySource
ZipEntrySource that has encrypted temp files to ensure that
sensitive data is not stored in raw format on disk.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Indicates we are done with reading, and
resources may be freed
|
static AesZipFileZipEntrySource |
createZipEntrySource(InputStream is) |
Enumeration<? extends org.apache.commons.compress.archivers.zip.ZipArchiveEntry> |
getEntries()
Note: the file sizes are rounded up to the next cipher block size,
so don't rely on file sizes of these custom encrypted zip file entries!
|
org.apache.commons.compress.archivers.zip.ZipArchiveEntry |
getEntry(String path)
Return an entry by its path
|
InputStream |
getInputStream(org.apache.commons.compress.archivers.zip.ZipArchiveEntry entry)
Returns an InputStream of the decompressed
data that makes up the entry
|
boolean |
isClosed()
Has close been called already?
|
public Enumeration<? extends org.apache.commons.compress.archivers.zip.ZipArchiveEntry> getEntries()
getEntries in interface ZipEntrySourcepublic org.apache.commons.compress.archivers.zip.ZipArchiveEntry getEntry(String path)
ZipEntrySourcegetEntry in interface ZipEntrySourcepath - the path in unix-notationnull if not foundpublic InputStream getInputStream(org.apache.commons.compress.archivers.zip.ZipArchiveEntry entry) throws IOException
ZipEntrySourcegetInputStream in interface ZipEntrySourceIOExceptionpublic void close()
throws IOException
ZipEntrySourceclose in interface Closeableclose in interface AutoCloseableclose in interface ZipEntrySourceIOExceptionpublic boolean isClosed()
ZipEntrySourceisClosed in interface ZipEntrySourcepublic static AesZipFileZipEntrySource createZipEntrySource(InputStream is) throws IOException
IOExceptionCopyright 2019 The Apache Software Foundation or its licensors, as applicable.