C# Class Castle.MonoRail.Framework.TransformFilters.LowerCaseTransformFilter

Simple proof of concept filter that converts the stream data to lowercase.
Inheritance: TransformFilter
Show file Open project: nats/castle-1.0.3-mono Class Usage Examples

Public Methods

Method Description
LowerCaseTransformFilter ( Stream baseStream ) : System

Initializes a new instance of the LowerCaseTransformFilter class.

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

When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.

Method Details

LowerCaseTransformFilter() public method

Initializes a new instance of the LowerCaseTransformFilter class.
public LowerCaseTransformFilter ( Stream baseStream ) : System
baseStream Stream The stream to write to after filtering.
return System

Write() public method

When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
An I/O error occurs. The stream does not support writing. Methods were called after the stream was closed. buffer is null. The sum of offset and count is greater than the buffer length. offset or count is negative.
public Write ( byte buffer, int offset, int count ) : void
buffer byte An array of bytes. This method copies count bytes from buffer to the current stream.
offset int The zero-based byte offset in buffer at which to begin copying bytes to the current stream.
count int The number of bytes to be written to the current stream.
return void