C# Class Common.HttpCompress.HttpOutputFilter

The base of anything you want to latch onto the Filter property of a System.Web.HttpResponse object.

These are generally used with HttpModule but you could really use them in other HttpModules. This is a general, write-only stream that writes to some underlying stream. When implementing a real class, you have to override void Write(byte[], int offset, int count). Your work will be performed there.
Inheritance: Stream
Afficher le fichier Open project: rabbal/Mvc5

Méthodes publiques

Méthode Description
Close ( ) : void

Closes this Filter and the underlying stream.

If you override, call up to this method in your implementation.

Flush ( ) : void

Fluses this Filter and the underlying stream.

If you override, call up to this method in your implementation.

Read ( byte buffer, int offset, int count ) : int

Not supported.

Seek ( long offset, SeekOrigin direction ) : long

Not supported. Throws an exception saying so.

SetLength ( long length ) : void

Not supported. Throws an exception saying so.

Méthodes protégées

Méthode Description
HttpOutputFilter ( Stream baseStream ) : System

Subclasses need to call this on contruction to setup the underlying stream

Method Details

Close() public méthode

Closes this Filter and the underlying stream.
If you override, call up to this method in your implementation.
public Close ( ) : void
Résultat void

Flush() public méthode

Fluses this Filter and the underlying stream.
If you override, call up to this method in your implementation.
public Flush ( ) : void
Résultat void

HttpOutputFilter() protected méthode

Subclasses need to call this on contruction to setup the underlying stream
protected HttpOutputFilter ( Stream baseStream ) : System
baseStream Stream The stream we're wrapping up in a filter
Résultat System

Read() public méthode

Not supported.
public Read ( byte buffer, int offset, int count ) : int
buffer byte The buffer to write into.
offset int The offset on the buffer to write into
count int The number of bytes to write. Must be less than buffer.Length
Résultat int

Seek() public méthode

Not supported. Throws an exception saying so.
Thrown. Always.
public Seek ( long offset, SeekOrigin direction ) : long
offset long
direction SeekOrigin
Résultat long

SetLength() public méthode

Not supported. Throws an exception saying so.
Thrown. Always.
public SetLength ( long length ) : void
length long
Résultat void