Table of Contents

Interface IArchiveExtractor

Namespace
ZeroInstall.Archives.Extractors
Assembly
ZeroInstall.Archives.dll

Extracts implementation archives.

public interface IArchiveExtractor

Remarks

Implementations of this interface are immutable and thread-safe.

Properties

Tag

A Tag to set for see cref="ITask"/>s spawned by this extractor; can be null.

object? Tag { get; set; }

Property Value

object

Methods

Extract(IBuilder, Stream, string?)

Extracts an archive.

void Extract(IBuilder builder, Stream stream, string? subDir = null)

Parameters

builder IBuilder

The builder receiving the extracted files.

stream Stream

The archive data to be extracted.

subDir string

The Unix-style path of the subdirectory in the archive to extract; null to extract entire archive.

Exceptions

OperationCanceledException

The operation was canceled.

IOException

A problem occurred while extracting the archive.