ZArchive

ZArchive class

This class represents Z (compress) archive file. Use it to compose or extract Z archives.

public class ZArchive : IArchive, IArchiveFileEntry

Constructors

NameDescription
ZArchive()Initializes a new instance of the ZArchive class prepared for compressing.
ZArchive(Stream)Initializes a new instance of the ZArchive class prepared for decompressing.
ZArchive(string)Initializes a new instance of the ZArchive class prepared for decompressing.

Methods

NameDescription
Dispose()Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Extract(FileInfo)Extracts Z archive to a file.
Extract(Stream)Extracts Z archive to a stream.
Extract(string)Extracts Z archive to a file by path.
ExtractToDirectory(string)Extracts content of the archive to the directory provided.
Save(Stream)Saves xz archive to the stream provided.
Save(string)Saves Z archive to destination file provided.
SetSource(FileInfo)Sets the content to be compressed within the archive.
SetSource(Stream)Sets the content to be compressed within the archive.
SetSource(string)Sets the content to be compressed within the archive.

Remarks

See https://docs.fileformat.com/compression/z/

See Also