C# Class Common.HttpCompress.GZipFilter

This is a little filter to support HTTP compression using GZip
Inheritance: CompressingFilter
Datei anzeigen Open project: rabbal/Mvc5

Public Methods

Method Description
Close ( ) : void

Closes this Filter and calls the base class implementation.

Flush ( ) : void

Flushes the stream out to underlying storage

GZipFilter ( Stream baseStream ) : System.IO

Primary constructor. Need to pass in a stream to wrap up with gzip.

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

Write content to the stream and have it compressed using gzip.

Method Details

Close() public method

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

Flush() public method

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

GZipFilter() public method

Primary constructor. Need to pass in a stream to wrap up with gzip.
public GZipFilter ( Stream baseStream ) : System.IO
baseStream System.IO.Stream The stream to wrap in gzip. Must have CanWrite.
return System.IO

Write() public method

Write content to the stream and have it compressed using gzip.
public Write ( byte buffer, int offset, int count ) : void
buffer byte The bytes to write
offset int The offset into the buffer to start reading bytes
count int The number of bytes to write
return void