LzmaArchive

LzmaArchive class

This class represents LZMA archive file. Use it to compose or extract LZMA archives.

The LzmaArchive type exposes the following members:

Constructors

NameDescription
LzmaArchive(settings)Initializes a new instance of the LzmaArchive class and composes the archive in lzma format.
LzmaArchive(source)Initializes a new instance of the LzmaArchive class prepared for decompressing.
LzmaArchive(path)Initializes a new instance of the LzmaArchive class prepared for decompressing.

Properties

NameDescription
file_entriesGets entries of IArchiveFileEntry type constituting the archive.
formatGets the archive format.
nameGets name of the entry.
lengthGets the length of the entry in bytes.

Methods

NameDescription
extract(destination)Extracts lzma archive to a stream.
extract(path)Extracts lzma archive to a file by path.
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 lzma archive to the stream provided.
save(destination_file_name)Saves lzma archive to destination file provided.
extract_to_directory(destination_directory)Extracts content of the archive to the directory provided.

See Also