unpack Zip Entry
private fun unpackZipEntry(unpackDirectory: String, zipInputStream: ZipInputStream, zipEntry: ZipEntry, totalUnpackedBytes: Long): Long
Validates and extracts a single zip entry under unpackDirectory. Throws IllegalStateException from validateChildFileExistsUnderParent if the entry name would resolve outside of unpackDirectory, and IOException from copyZipEntryToOutputStream if the entry or the cumulative archive exceed their size limits. Directory entries are created; file entries are written to disk.
Return
the updated cumulative byte total after processing zipEntry.
Parameters
unpack Directory
the absolute destination directory for the archive.
zip Input Stream
the active zip stream positioned at zipEntry.
zip Entry
the entry currently being processed.
total Unpacked Bytes
cumulative bytes written across previously extracted entries.