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
Mostra file Open project: rabbal/Mvc5

Public Methods

Method 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.

Protected Methods

Method Description
HttpOutputFilter ( Stream baseStream ) : System

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

Method Details

Close() public method

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

Flush() public method

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

HttpOutputFilter() protected method

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
return System

Read() public method

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
return int

Seek() public method

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

SetLength() public method

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