Bzip2Archive Class

This class represents bzip2 archive file. Use it to compose or extract bzip2 archives.
Inheritance Hierarchy
SystemObject
  Aspose.Zip.Bzip2Bzip2Archive

Namespace:  Aspose.Zip.Bzip2
Assembly:  Aspose.Zip (in Aspose.Zip.dll) Version: 20.3
Syntax
public class Bzip2Archive : IDisposable

The Bzip2Archive type exposes the following members.

Constructors
  NameDescription
Public methodCode exampleBzip2Archive
Initializes a new instance of the Bzip2Archive class prepared for compressing.
Public methodCode exampleBzip2Archive(Stream)
Initializes a new instance of the Bzip2Archive class prepared for decompressing.
Public methodCode exampleBzip2Archive(String)
Initializes a new instance of the Bzip2Archive class prepared for decompressing.
Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodCode exampleOpen
Opens the archive for extraction and provides a stream with archive content.
Public methodCode exampleSave(String)
Saves archive to destination file provided.
Public methodCode exampleSave(Stream, Bzip2SaveOptions)
Saves archive to the stream provided.
Public methodCode exampleSetSource(FileInfo)
Sets the content to be compressed within the archive.
Public methodCode exampleSetSource(Stream)
Sets the content to be compressed within the archive.
Public methodCode exampleSetSource(String)
Sets the content to be compressed within the archive.
Public methodCode exampleSetSource(TarArchive)
Sets the content to be compressed within the archive.
Public methodToString (Inherited from Object.)
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