@Beta public final class AesZipFileZipEntrySource extends java.lang.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(java.io.InputStream is) |
java.util.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(java.lang.String path)
Return an entry by its path
|
java.io.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 java.util.Enumeration<? extends org.apache.commons.compress.archivers.zip.ZipArchiveEntry> getEntries()
getEntries in interface ZipEntrySourcepublic org.apache.commons.compress.archivers.zip.ZipArchiveEntry getEntry(java.lang.String path)
ZipEntrySourcegetEntry in interface ZipEntrySourcepath - the path in unix-notationnull if not foundpublic java.io.InputStream getInputStream(org.apache.commons.compress.archivers.zip.ZipArchiveEntry entry)
throws java.io.IOException
ZipEntrySourcegetInputStream in interface ZipEntrySourcejava.io.IOExceptionpublic void close()
throws java.io.IOException
ZipEntrySourceclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface ZipEntrySourcejava.io.IOExceptionpublic boolean isClosed()
ZipEntrySourceisClosed in interface ZipEntrySourcepublic static AesZipFileZipEntrySource createZipEntrySource(java.io.InputStream is) throws java.io.IOException
java.io.IOExceptionCopyright 2022 The Apache Software Foundation or its licensors, as applicable.