C# Class MVC5.Common.HttpCompress.GZipFilter

This is a little filter to support HTTP compression using GZip
Inheritance: CompressingFilter
Afficher le fichier Open project: rabbal/AspNetMVCNTierTemp

Méthodes publiques

Méthode 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 méthode

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

Flush() public méthode

Flushes the stream out to underlying storage
public Flush ( ) : void
Résultat void

GZipFilter() public méthode

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.
Résultat System.IO

Write() public méthode

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
Résultat void