C# Class gov.va.medora.mdws.ResponseReader

We can use this class to add a custom filter to our Response object. This class is mostly a wrapper for a stream but caches the write output to the ResponseReader accessor for retrieval at the end of the request processing
Inheritance: Stream
显示文件 Open project: OSEHRA/mdws

Public Methods

Method Description
Flush ( ) : void
Read ( byte buffer, int offset, int count ) : int
ResponseReader ( Stream stream ) : System
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void

The overridden write converts the output to text and caches it in the ResponseString accessor. It finally converts that string back to an array of bytes and writes it back out to the wrapped stream

Method Details

Flush() public method

public Flush ( ) : void
return void

Read() public method

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

ResponseReader() public method

public ResponseReader ( Stream stream ) : System
stream Stream
return System

Seek() public method

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

SetLength() public method

public SetLength ( long value ) : void
value long
return void

Write() public method

The overridden write converts the output to text and caches it in the ResponseString accessor. It finally converts that string back to an array of bytes and writes it back out to the wrapped stream
public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void