XzArchive

XzArchive class

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

public class XzArchive : IDisposable

Constructors

Name Description
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

Name Description
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.
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