putArchiveEntry

open fun putArchiveEntry(archiveEntry: ArchiveEntry)

Writes the headers for an archive entry to the output stream. The caller must then write the content to the stream and call #closeArchiveEntry() to complete the process.

Throws

if entry is not an instance of ZipArchiveEntry

if the entry's uncompressed or compressed size is known to exceed 4 GByte and setUseZip64 is Never.