XzArchive

XzArchive class

This class represents xz archive file. Use it to compose and extract xz archives.

public class XzArchive : IArchive, IArchiveFileEntry

Constructors

NameDescription
XzArchive(Stream)Initializes a new instance of the XzArchive class prepared for decompressing.
XzArchive(string)Initializes a new instance of the XzArchive class prepared for decompressing.
XzArchive(XzArchiveSettings)Initializes a new instance of the XzArchive class and composes the archive in xz format.

Methods

NameDescription
Dispose()Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Extract(FileInfo)Extracts xz archive to a file.
Extract(Stream)Extracts xz archive to a stream.
Extract(string)Extracts xz 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 xz 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.

See Also