C# Класс 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.
Наследование: Element, IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

Chain() публичный Метод

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
Результат void

Chain() публичный Метод

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
Результат void

Close() публичный Метод

Closes the reader.
public Close ( ) : void
Результат void

Dispose() публичный Метод

Calls close and supresses the finalizer for the object.
public Dispose ( ) : void
Результат void

Peek() публичный Метод

Forwards Peek calls to the TextReader or ChainableReader passed in the corresponding constructor.
public Peek ( ) : int
Результат int

Read() публичный Метод

Forwards Read calls to the TextReader or ChainableReader passed in the corresponding constructor.
public Read ( ) : int
Результат int