Class DmgExtractor
- Namespace
- ZeroInstall.Archives.Extractors
- Assembly
- ZeroInstall.Archives.dll
Extracts Apple Disk images (.dmg).
public class DmgExtractor : ArchiveExtractor, IArchiveExtractor
- Inheritance
-
DmgExtractor
- Implements
- Inherited Members
Remarks
This class is immutable and thread-safe.
Constructors
DmgExtractor(ITaskHandler)
Extracts Apple Disk images (.dmg).
public DmgExtractor(ITaskHandler handler)
Parameters
handlerITaskHandlerA callback object used when the user needs to be informed about IO tasks.
Remarks
This class is immutable and thread-safe.
Exceptions
- PlatformNotSupportedException
The current platform is not macOS.
Methods
Extract(IBuilder, Stream, string?)
Extracts an archive.
public override void Extract(IBuilder builder, Stream stream, string? subDir = null)
Parameters
builderIBuilderThe builder receiving the extracted files.
streamStreamThe archive data to be extracted.
subDirstringThe Unix-style path of the subdirectory in the archive to extract;
nullto extract entire archive.
Exceptions
- OperationCanceledException
The operation was canceled.
- IOException
A problem occurred while extracting the archive.