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
파일 보기 프로젝트 열기: skolima/NAnt 1 사용 예제들

공개 메소드들

메소드 설명
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