C# Class NAnt.Core.Filters.ChainableReader

Functions as a chainable TextReader
Implements a abstraction over a TextReader that allows the class to represent either a TextReader or another ChainableReader to which it is chained. By passing a ChainableReader as a constructor paramater it is possiable to chain many ChainableReaders together. The last ChainableReader in the chain must be based on a TextReader.
Inheritance: Element, IDisposable
Show file Open project: skolima/NAnt Class Usage Examples

Public Methods

Method Description
Chain ( ChainableReader parentChainedReader ) : void

Makes it so all calls to Read and Peek are passed the ChainableReader passed as a parameter.

Chain ( TextReader baseReader ) : void

Makes it so all calls to Read and Peek are passed the TextReader passed as a parameter.

Close ( ) : void

Closes the reader.

Dispose ( ) : void

Calls close and supresses the finalizer for the object.

Peek ( ) : int

Forwards Peek calls to the TextReader or ChainableReader passed in the corresponding constructor.

Read ( ) : int

Forwards Read calls to the TextReader or ChainableReader passed in the corresponding constructor.

Method Details

Chain() public method

Makes it so all calls to Read and Peek are passed the ChainableReader passed as a parameter.
public Chain ( ChainableReader parentChainedReader ) : void
parentChainedReader ChainableReader ChainableReader to forward calls to
return void

Chain() public method

Makes it so all calls to Read and Peek are passed the TextReader passed as a parameter.
public Chain ( TextReader baseReader ) : void
baseReader System.IO.TextReader TextReader to forward calls to
return void

Close() public method

Closes the reader.
public Close ( ) : void
return void

Dispose() public method

Calls close and supresses the finalizer for the object.
public Dispose ( ) : void
return void

Peek() public method

Forwards Peek calls to the TextReader or ChainableReader passed in the corresponding constructor.
public Peek ( ) : int
return int

Read() public method

Forwards Read calls to the TextReader or ChainableReader passed in the corresponding constructor.
public Read ( ) : int
return int