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
파일 보기 프로젝트 열기: rabbal/Mvc5

공개 메소드들

메소드 설명
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