← ZIO Streams Compress docs

Unarchiver

zio.compress.Unarchiver
trait Unarchiver[Size <: (Option), Underlying] extends Serializable

An unarchiver makes pipelines that accept the byte stream of an archive, and produce a stream of archive entries.

Type parameters

Size

Either a Some when the archive entries have a known uncompressed size, None when the archive entries do not have the uncompressed size, or Option when the archive entries might have the uncompressed size.

Underlying

The archive entries from the underlying archiving library.

Attributes

Source
Unarchiver.scala
Graph
Supertypes
trait Serializable
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def unarchive(implicit trace: Trace): ZPipeline[Any, Throwable, Byte, (ArchiveEntry[Size, Underlying], ZStream[Any, Throwable, Byte])]

Make a pipeline that accepts the byte stream of an archive, and produces a stream of archive entries and their content.

Make a pipeline that accepts the byte stream of an archive, and produces a stream of archive entries and their content.

⚠️Note: the entry's content must be fully read before the next archive entry is emitted. See the project's README for the consequences, tips and workarounds.

Attributes

Source
Unarchiver.scala

Concrete methods

def list(implicit trace: Trace): ZPipeline[Any, Throwable, Byte, ArchiveEntry[Some, Underlying]]

Make a pipeline that accepts the byte stream of an archive, and produces a stream of archive entries with accurate uncompressed size.

Make a pipeline that accepts the byte stream of an archive, and produces a stream of archive entries with accurate uncompressed size.

Attributes

Source
Unarchiver.scala