C# 클래스 CsQuery.Implementation.CombinedTextReader

Creates a virtual TextReader from several other streams.
상속: TextReader
파일 보기 프로젝트 열기: prepare/HTML-Renderer 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
Readers TextReader[]

Private Properties

프로퍼티 타입 설명
NextReader bool

공개 메소드들

메소드 설명
Close ( ) : void

Closes the T:System.IO.TextReader and releases any system resources associated with the TextReader.

CombinedTextReader ( ) : System

Create a new virtual TextReader by combining, in sequence, the streams provided as parameters to the constructor

CreateObjRef ( Type requestedType ) : System.Runtime.Remoting.ObjRef

Creates object reference. (Overridden because it's implemented by the base class and we want to be sure that anything trying to use this will fail).

Equals ( object obj ) : bool

Tests if this object is considered equal to another.

GetHashCode ( ) : int

Returns a hash code for this object.

InitializeLifetimeService ( ) : object

Initializes the lifetime service. (Overridden because it's implemented by the base class and we want to be sure that anything trying to use this will fail).

Peek ( ) : int

Reads the next character without changing the state of the reader or the character source. Returns the next available character without actually reading it from the input stream.

Read ( ) : int

Reads the next character from the input stream and advances the character position by one character.

Read ( char buffer, int index, int count ) : int

Reads a maximum of count characters from the current stream and writes the data to buffer, beginning at index.

ReadBlock ( char buffer, int index, int count ) : int

Reads a maximum of count characters from the current stream, and writes the data to buffer, beginning at index.

ReadLine ( ) : string

Reads a line of characters from the current stream and returns the data as a string. Note: this method will not combine data from two boundary streams into a single line; the end of a stream is always the end of a line. This could result in stream corruption (e.g. the addition of newlines between streams) when using this method.

ReadToEnd ( ) : string

Reads all characters from the current position to the end of the TextReader and returns them as one string.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the T:System.IO.TextReader and optionally releases the managed resources.

비공개 메소드들

메소드 설명
NextReader ( ) : bool

Advance to the next reader

메소드 상세

Close() 공개 메소드

Closes the T:System.IO.TextReader and releases any system resources associated with the TextReader.
public Close ( ) : void
리턴 void

CombinedTextReader() 공개 메소드

Create a new virtual TextReader by combining, in sequence, the streams provided as parameters to the constructor
public CombinedTextReader ( ) : System
리턴 System

CreateObjRef() 공개 메소드

Creates object reference. (Overridden because it's implemented by the base class and we want to be sure that anything trying to use this will fail).
/// Thrown when the requested operation is unimplemented. ///
public CreateObjRef ( Type requestedType ) : System.Runtime.Remoting.ObjRef
requestedType System.Type /// Type of the requested. ///
리턴 System.Runtime.Remoting.ObjRef

Dispose() 보호된 메소드

Releases the unmanaged resources used by the T:System.IO.TextReader and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool /// true to release both managed and unmanaged resources; false to release only unmanaged /// resources. ///
리턴 void

Equals() 공개 메소드

Tests if this object is considered equal to another.
public Equals ( object obj ) : bool
obj object /// The object to compare to this object. ///
리턴 bool

GetHashCode() 공개 메소드

Returns a hash code for this object.
public GetHashCode ( ) : int
리턴 int

InitializeLifetimeService() 공개 메소드

Initializes the lifetime service. (Overridden because it's implemented by the base class and we want to be sure that anything trying to use this will fail).
/// Thrown when the requested operation is unimplemented. ///
public InitializeLifetimeService ( ) : object
리턴 object

Peek() 공개 메소드

Reads the next character without changing the state of the reader or the character source. Returns the next available character without actually reading it from the input stream.
public Peek ( ) : int
리턴 int

Read() 공개 메소드

Reads the next character from the input stream and advances the character position by one character.
public Read ( ) : int
리턴 int

Read() 공개 메소드

Reads a maximum of count characters from the current stream and writes the data to buffer, beginning at index.
/// is null. /// /// The buffer length minus is less than . /// /// or is negative. /// /// The is closed. /// /// An I/O error occurs. ///
public Read ( char buffer, int index, int count ) : int
buffer char /// When this method returns, contains the specified character array with the values between /// and ( + - 1) /// replaced by the characters read from the current source. ///
index int /// The position in at which to begin writing. ///
count int /// The maximum number of characters to read. If the end of the stream is reached before /// of characters is read into , the current /// method returns. ///
리턴 int

ReadBlock() 공개 메소드

Reads a maximum of count characters from the current stream, and writes the data to buffer, beginning at index.
public ReadBlock ( char buffer, int index, int count ) : int
buffer char /// When this method returns, this parameter contains the specified character array with the /// values between and ( + /// -1) replaced by the characters read from the current source. ///
index int /// The position in at which to begin writing. ///
count int /// The maximum number of characters to read. ///
리턴 int

ReadLine() 공개 메소드

Reads a line of characters from the current stream and returns the data as a string. Note: this method will not combine data from two boundary streams into a single line; the end of a stream is always the end of a line. This could result in stream corruption (e.g. the addition of newlines between streams) when using this method.
public ReadLine ( ) : string
리턴 string

ReadToEnd() 공개 메소드

Reads all characters from the current position to the end of the TextReader and returns them as one string.
public ReadToEnd ( ) : string
리턴 string

프로퍼티 상세

Readers 보호되어 있는 프로퍼티

The readers.
protected TextReader[] Readers
리턴 TextReader[]