C# Class Common.HttpCompress.DeflateFilter

Summary description for DeflateFilter.
Inheritance: CompressingFilter
Exibir arquivo Open project: rabbal/Mvc5

Public Methods

Method Description
Close ( ) : void

Closes this Filter and calls the base class implementation.

DeflateFilter ( Stream baseStream ) : System.IO

Basic constructor that uses the Normal compression level

DeflateFilter ( Stream baseStream, CompressionLevels compressionLevel ) : System.IO

Full constructor that allows you to set the wrapped stream and the level of compression

Flush ( ) : void

Flushes that the filter out to underlying storage

Write ( byte buffer, int offset, int count ) : void

Write out bytes to the underlying stream after compressing them using deflate

Method Details

Close() public method

Closes this Filter and calls the base class implementation.
public Close ( ) : void
return void

DeflateFilter() public method

Basic constructor that uses the Normal compression level
public DeflateFilter ( Stream baseStream ) : System.IO
baseStream System.IO.Stream The stream to wrap up with the deflate algorithm
return System.IO

DeflateFilter() public method

Full constructor that allows you to set the wrapped stream and the level of compression
public DeflateFilter ( Stream baseStream, CompressionLevels compressionLevel ) : System.IO
baseStream System.IO.Stream The stream to wrap up with the deflate algorithm
compressionLevel CompressionLevels The level of compression to use
return System.IO

Flush() public method

Flushes that the filter out to underlying storage
public Flush ( ) : void
return void

Write() public method

Write out bytes to the underlying stream after compressing them using deflate
public Write ( byte buffer, int offset, int count ) : void
buffer byte The array of bytes to write
offset int The offset into the supplied buffer to start
count int The number of bytes to write
return void