Class ZipExtractor
- Namespace
- ZeroInstall.Archives.Extractors
- Assembly
- ZeroInstall.Archives.dll
Extracts ZIP archives (.zip).
public class ZipExtractor : ArchiveExtractor, IArchiveExtractor
- Inheritance
-
ZipExtractor
- Implements
- Inherited Members
Constructors
ZipExtractor(ITaskHandler)
Extracts ZIP archives (.zip).
public ZipExtractor(ITaskHandler handler)
Parameters
handler
ITaskHandler
Fields
DefaultAttributes
The default ExternalFileAttributes.
public const int DefaultAttributes = 27525120
Field Value
ExecuteAttributes
The ExternalFileAttributes that indicate a ZIP entry is an executable file.
public const int ExecuteAttributes = 4784128
Field Value
SymlinkAttributes
The ExternalFileAttributes that indicate a ZIP entry is a symlink.
public const int SymlinkAttributes = 536870912
Field Value
Methods
Extract(IBuilder, Stream, string?)
Extracts an archive.
public override void Extract(IBuilder builder, Stream stream, string? subDir = null)
Parameters
builder
IBuilderThe builder receiving the extracted files.
stream
StreamThe archive data to be extracted.
subDir
stringThe 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.