C# Class ICSharpCode.SharpZipLib.BZip2.BZip2

Does all the compress and decompress pre-operation stuff. Sets up the streams and file header characters. Uses multiply overloaded methods to call for the compress/decompress.
Show file Open project: icsharpcode/SharpZipLib

Public Methods

Method Description
Compress ( Stream inStream, Stream outStream, bool isStreamOwner, int level ) : void

Compress the input stream sending result data to output stream

Decompress ( Stream inStream, Stream outStream, bool isStreamOwner ) : void

Decompress the input writing uncompressed data to the output stream

Method Details

Compress() public static method

Compress the input stream sending result data to output stream
public static Compress ( Stream inStream, Stream outStream, bool isStreamOwner, int level ) : void
inStream Stream The readable stream to compress.
outStream Stream The output stream to receive the compressed data.
isStreamOwner bool Both streams are closed on completion if true.
level int Block size acts as compression level (1 to 9) with 1 giving /// the lowest compression and 9 the highest.
return void

Decompress() public static method

Decompress the input writing uncompressed data to the output stream
public static Decompress ( Stream inStream, Stream outStream, bool isStreamOwner ) : void
inStream Stream The readable stream containing data to decompress.
outStream Stream The output stream to receive the decompressed data.
isStreamOwner bool Both streams are closed on completion if true.
return void