Bzip2Archive

Bzip2Archive class

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

public class Bzip2Archive : IArchive, IArchiveFileEntry

Constructors

NameDescription
Bzip2Archive()Initializes a new instance of the Bzip2Archive class prepared for compressing.
Bzip2Archive(Stream)Initializes a new instance of the Bzip2Archive class prepared for decompressing.
Bzip2Archive(string)Initializes a new instance of the Bzip2Archive class prepared for decompressing.

Methods

NameDescription
Dispose()Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Extract(Stream)Extracts the archive to the stream provided.
Extract(string)Extracts the archive to the file by path.
ExtractToDirectory(string)Extracts content of the archive to the directory provided.
Open()Opens the archive for extraction and provides a stream with archive content.
Save(Stream, Bzip2SaveOptions)Saves archive to the stream provided.
Save(string, Bzip2SaveOptions)Saves 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.
SetSource(CpioArchive, CpioFormat)Sets the content to be compressed within the archive.
SetSource(TarArchive, TarFormat)Sets the content to be compressed within the archive.

Remarks

bzip2 compresses files using the Burrows-Wheeler block sorting text compression algorithm, and Huffman coding. See more: https://en.wikipedia.org/wiki/Bzip2

See Also