C# Класс 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.
Наследование: Stream
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
HttpOutputFilter ( Stream baseStream ) : System

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

Описание методов

Close() публичный Метод

Closes this Filter and the underlying stream.
If you override, call up to this method in your implementation.
public Close ( ) : void
Результат void

Flush() публичный Метод

Fluses this Filter and the underlying stream.
If you override, call up to this method in your implementation.
public Flush ( ) : void
Результат void

HttpOutputFilter() защищенный Метод

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
Результат System

Read() публичный Метод

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
Результат int

Seek() публичный Метод

Not supported. Throws an exception saying so.
Thrown. Always.
public Seek ( long offset, SeekOrigin direction ) : long
offset long
direction SeekOrigin
Результат long

SetLength() публичный Метод

Not supported. Throws an exception saying so.
Thrown. Always.
public SetLength ( long length ) : void
length long
Результат void