← ZIO Streams Compress docs

ZipArchiver

zio.compress.ZipArchiver
See theZipArchiver companion class
object ZipArchiver

Attributes

Companion
class
Source
Zip.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(level: Option[DeflateCompressionLevel] = ..., zipMethod: ZipMethod = ...): ZipArchiver

An Archiver for ZIP, based on the JVM standard library.

An Archiver for ZIP, based on the JVM standard library.

The archive entries do not require an uncompressed size.

⚠️WARNING: High memory usage for zip-method Stored!

This archiver needs to slurp each content in memory to calculate a checksum (CRC-32) as the wrapped ZipOutputStream requires it up front. Use the Zip4JArchiver when this is an issue.

Value parameters

level

compression level (only applicable for method 'deflated'). Currently defaults to level 6.

zipMethod

zip method: stored (no compression) or deflated. Defaults to deflated.

Attributes

Source
Zip.scala

Attributes

Source
Zip.scala