C# Class DOTNETIDS.OutputFilter

A class that can examine a Page's output
Inheritance: System.IO.Stream
ファイルを表示 Open project: IndiansIncredible/.NetIDS Class Usage Examples

Public Methods

Method Description
Close ( ) : void

Close the stream

Flush ( ) : void

Flush the contents of the stream

OutputFilter ( Stream baseStream, System page, Encoding encoder, IDS ids ) : System

Construct an Output Filter object using the same filters as an already existing IDS object

OutputFilter ( Stream baseStream, System page, Encoding encoder, string xmlPath ) : System

Construct an Output Filter object

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

Read from the stream

Seek ( long offset, SeekOrigin origin ) : long

Move the stream to a new position

SetLength ( long value ) : void

Set the length of the stream

Write ( byte buffer, int offset, int count ) : void

Write to the stream

WriteResponse ( ) : void

Write the original response to the client

WriteResponse ( string response ) : void

Write a different response to the client

Private Methods

Method Description
GetInterceptor ( ) : ControlRenderInteceptor

Get an object that can intercept control rendering

Method Details

Close() public method

Close the stream
public Close ( ) : void
return void

Flush() public method

Flush the contents of the stream
public Flush ( ) : void
return void

OutputFilter() public method

Construct an Output Filter object using the same filters as an already existing IDS object
public OutputFilter ( Stream baseStream, System page, Encoding encoder, IDS ids ) : System
baseStream Stream The underlying stream to filter
page System The page this request is based on
encoder System.Text.Encoding An encoding object
ids IDS The IDS containing the preloaded filters
return System

OutputFilter() public method

Construct an Output Filter object
public OutputFilter ( Stream baseStream, System page, Encoding encoder, string xmlPath ) : System
baseStream Stream The underlying stream to filter
page System The page this request is based on
encoder System.Text.Encoding An encoding object
xmlPath string The path to the output filters
return System

Read() public method

Read from the stream
public Read ( byte buffer, int offset, int count ) : int
buffer byte The buffer to fill
offset int The offset to read from
count int The number of bytes to read
return int

Seek() public method

Move the stream to a new position
public Seek ( long offset, SeekOrigin origin ) : long
offset long The offset
origin SeekOrigin The origin
return long

SetLength() public method

Set the length of the stream
public SetLength ( long value ) : void
value long The new length
return void

Write() public method

Write to the stream
public Write ( byte buffer, int offset, int count ) : void
buffer byte The data to be written
offset int The offset to write at
count int The number of bytes to write
return void

WriteResponse() public method

Write the original response to the client
public WriteResponse ( ) : void
return void

WriteResponse() public method

Write a different response to the client
public WriteResponse ( string response ) : void
response string
return void