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
Afficher le fichier Open project: OSEHRA/mdws

Méthodes publiques

Méthode 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 méthode

public Flush ( ) : void
Résultat void

Read() public méthode

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
Résultat int

ResponseReader() public méthode

public ResponseReader ( Stream stream ) : System
stream Stream
Résultat System

Seek() public méthode

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
Résultat long

SetLength() public méthode

public SetLength ( long value ) : void
value long
Résultat void

Write() public méthode

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
Résultat void