Archiver Class

The base class of SevenZipSharp for compressed file archivers.

Definition

Namespace: DevCase.ThirdParty.SevenZipSharp
Assembly: DevCase.net48.ThirdParty.SevenZipsharp (in DevCase.net48.ThirdParty.SevenZipsharp.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public abstract class Archiver : IDisposable
Inheritance
Object    Archiver
Derived
More
Implements
IDisposable

Remarks

Note: Some functionalities of this assembly may require to install one or all of the listed NuGet packages:

Squid-Box.SevenZipSharp

Constructors

Archiver(OutArchiveFormat, FileInfo) Initializes a new instance of the Archiver class.
Archiver(OutArchiveFormat, String) Initializes a new instance of the Archiver class.

Methods

Add(IEnumerableString, String) Appends the source file or directory into the specified compressed archive using the default compression parameters.
Add(String, String) Appends the source file or directory into the specified compressed archive using the default compression parameters.
Add(IEnumerableString, String, String) Appends the source file or directory into the specified compressed archive, with a password, using the default compression parameters.
Add(String, String, String) Appends the source file or directory into the specified compressed archive, with a password, using the default compression parameters.
Add(IEnumerableString, String, CompressionMethod, CompressionLevel) Appends the source file or directory into the specified compressed archive using the specified compression parameters.
Add(String, String, CompressionMethod, CompressionLevel) Appends the source file or directory into the specified compressed archive using the specified compression parameters.
Add(IEnumerableString, String, String, CompressionMethod, CompressionLevel) Appends the source file or directory into the specified compressed archive, with a password, using the specified compression parameters.
Add(String, String, String, CompressionMethod, CompressionLevel) Appends the source file or directory into the specified compressed archive, with a password, using the specified compression parameters.
Build(IEnumerableString, String) Builds a compressed archive containing the source file or directory using the default compression parameters.
Build(String, String) Builds a compressed archive containing the source file or directory using the default compression parameters.
Build(IEnumerableString, String, String) Builds a compressed archive, with a password, containing the source file or directory using the default compression parameters.
Build(String, String, String) Builds a compressed archive, with a password, containing the source file or directory using the default compression parameters.
Build(IEnumerableString, String, CompressionMethod, CompressionLevel) Builds a compressed archive containing the source file or directory using the specified compression parameters.
Build(String, String, CompressionMethod, CompressionLevel) Builds a compressed archive containing the source file or directory using the specified compression parameters.
Build(IEnumerableString, String, String, CompressionMethod, CompressionLevel) Builds a compressed archive, with a password, containing the source file or directory using the specified compression parameters.
Build(String, String, String, CompressionMethod, CompressionLevel) Builds a compressed archive, with a password, containing the source file or directory using the specified compression parameters.
BuildSfx(IEnumerableString, String, SevenZipSharpSfxModule) Builds a self-extracting archive (SFX) containing the source file or directory using the default compression parameters.
BuildSfx(String, String, SevenZipSharpSfxModule) Builds a self-extracting archive (SFX) containing the source file or directory using the default compression parameters.
BuildSfx(IEnumerableString, String, String, SevenZipSharpSfxModule) Builds a self-extracting archive (SFX), with a password, containing the source file or directory using the default compression parameters.
BuildSfx(String, String, String, SevenZipSharpSfxModule) Builds a self-extracting archive (SFX), with a password, containing the source file or directory using the default compression parameters.
BuildSfx(IEnumerableString, String, SevenZipSharpSfxModule, CompressionMethod, CompressionLevel) Builds a self-extracting archive (SFX) containing the source file or directory using the specified compression parameters.
BuildSfx(String, String, SevenZipSharpSfxModule, CompressionMethod, CompressionLevel) Builds a self-extracting archive (SFX) containing the source file or directory using the specified compression parameters.
BuildSfx(IEnumerableString, String, String, SevenZipSharpSfxModule, CompressionMethod, CompressionLevel) Builds a self-extracting archive (SFX), with a password, containing the source file or directory using the specified compression parameters.
BuildSfx(String, String, String, SevenZipSharpSfxModule, CompressionMethod, CompressionLevel) Builds a self-extracting archive (SFX), with a password, containing the source file or directory using the specified compression parameters.
Dispose Releases all the resources used by this instance.
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
Extract(String, String) Extracts the contents of the source compressed archive to the specified diretory.
Extract(String, String, String) Extracts the contents of the source compressed archive encrypted with a password, to the specified diretory.
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
ToString Returns a string that represents the current object.
(Inherited from Object)

Events

CompressionProgressChanged Occurs when the compression progress has changed.
ExtractionProgressChanged Occurs when the extraction progress has changed.
SfxCreated Occurs when a SFX is created.

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also