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
Afficher le fichier Open project: skolima/NAnt Class Usage Examples

Méthodes publiques

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

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

Chain() public méthode

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

Close() public méthode

Closes the reader.
public Close ( ) : void
Résultat void

Dispose() public méthode

Calls close and supresses the finalizer for the object.
public Dispose ( ) : void
Résultat void

Peek() public méthode

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

Read() public méthode

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