Bzip2Archive

Bzip2Archive class

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

The Bzip2Archive type exposes the following members:

Constructors

NameDescription
Bzip2Archive()Initializes a new instance of the Bzip2Archive class prepared for compressing.
Bzip2Archive(source_stream)Initializes a new instance of the Bzip2Archive class
Bzip2Archive(path)Initializes a new instance of the Bzip2Archive class

Properties

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

Methods

NameDescription
set_source(source)Sets the content to be compressed within the archive.
set_source(path)Sets the content to be compressed within the archive.
set_source(tar_archive, format)Sets the content to be compressed within the archive.
set_source(cpio_archive, format)Sets the content to be compressed within the archive.
extract(destination)Extracts the archive to the stream provided.
extract(path)Extracts content of the archive to the directory provided.
save(output_stream, save_options)Saves archive to the stream provided.
save(destination_file_name, save_options)Saves archive to destination file provided.
open()Opens the archive for extraction and provides a stream with archive content.
extract_to_directory(destination_directory)Extracts content of the archive to the directory provided.

See Also