ScatterZipOutputStream

A zip output stream that is optimized for multi-threaded scatter/gather construction of zip files.

The internal data format of the entries used by this class are entirely private to this class and are not part of any public api whatsoever.

It is possible to extend this class to support different kinds of backing storage, the default implementation only supports file-based backing.

Thread safety: This class supports multiple threads. But the "writeTo" method must be called by the thread that originally created the ZipArchiveEntry.

Since

1.10

Constructors

Link copied to clipboard
constructor(backingStore: ScatterGatherBackingStore, streamCompressor: StreamCompressor)

Types

Link copied to clipboard

Functions

Link copied to clipboard
open fun addArchiveEntry(zipArchiveEntryRequest: ZipArchiveEntryRequest)
Add an archive entry to this scatter stream.
Link copied to clipboard
open fun close()
Closes this stream, freeing all resources involved in the creation of this stream.
Link copied to clipboard
Write the contents of this scatter stream to a target archive.
Link copied to clipboard
Get a zip entry writer for this scatter stream.