XzArchive

XzArchive class

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

The XzArchive type exposes the following members:

Constructors

NameDescription
XzArchive(settings)Initializes a new instance of the XzArchive class
XzArchive(source)Initializes a new instance of the XzArchive class
XzArchive(path)Initializes a new instance of the XzArchive class

Properties

NameDescription
file_entriesGets entries of
nameGets name of the entry.
lengthGets the length of the entry in bytes.

Methods

NameDescription
extract(destination)Extracts xz archive to a stream.
extract(path)Extracts content of the archive to the directory provided.
set_source(source)Sets the content to be compressed within the archive.
set_source(source_path)Sets the content to be compressed within the archive.
save(output)Saves xz archive to the stream provided.
save(destination_file_name)Saves xz archive to destination file provided.
extract_to_directory(destination_directory)Extracts content of the archive to the directory provided.

See Also