write

public static void write(List<ParallelZipWriter.Entry> entries, OutputStream out, BooleanSupplier cancellationRequested)

Writes entries to out in the order given. The caller owns out and is responsible for closing it; this method flushes but does not close.

Throws

java.util.concurrent.CancellationException

if cancellationRequested trips (or the thread is interrupted) at any point during the write