addRawArchiveEntry

open fun addRawArchiveEntry(entry: ZipArchiveEntry, rawStream: InputStream)

Adds an archive entry with a raw input stream. If crc, size and compressed size are supplied on the entry, these values will be used as-is. Zip64 status is re-established based on the settings in this stream, and the supplied value is ignored. The entry is put and closed immediately.

Parameters

entry

The archive entry to add

rawStream

The raw input stream of a different entry. May be compressed/encrypted.

Throws

If copying fails