BlockingTextReader Class |
Namespace: VDS.RDF.Parsing
The BlockingTextReader type exposes the following members.
Name | Description | |
---|---|---|
EndOfStream |
Gets whether the end of the input has been reached.
(Inherited from BufferedTextReader.) |
Name | Description | |
---|---|---|
Close |
Closes the reader and the underlying reader.
(Inherited from BufferedTextReader.) | |
CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) | |
Dispose | Releases all resources used by the TextReader object. (Inherited from TextReader.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
Peek |
Peeks at the next character from the underlying Text Reader.
(Inherited from BufferedTextReader.) | |
Read |
Reads a single character from the underlying Text Reader.
(Inherited from BufferedTextReader.) | |
Read(Char, Int32, Int32) |
Reads a sequence of characters from the buffer.
(Inherited from BufferedTextReader.) | |
ReadAsync | Reads a specified maximum number of characters from the current text reader asynchronously and writes the data to a buffer, beginning at the specified index. (Inherited from TextReader.) | |
ReadBlock |
Reads a sequence of characters from the buffer in a blocking way.
(Inherited from BufferedTextReader.) | |
ReadBlockAsync | Reads a specified maximum number of characters from the current text reader asynchronously and writes the data to a buffer, beginning at the specified index. (Inherited from TextReader.) | |
ReadLine | Reads a line of characters from the text reader and returns the data as a string. (Inherited from TextReader.) | |
ReadLineAsync | Reads a line of characters asynchronously and returns the data as a string. (Inherited from TextReader.) | |
ReadToEnd | Reads all characters from the current position to the end of the text reader and returns them as one string. (Inherited from TextReader.) | |
ReadToEndAsync | Reads all characters from the current position to the end of the text reader asynchronously and returns them as one string. (Inherited from TextReader.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
This is designed to avoid premature detection of end of input when the input has high latency and the consumer tries to read from the input faster than it can return data. This derives from BufferedTextReader and ensures the buffer is filled by calling the ReadBlock() method of the underlying TextReader thus avoiding the scenario where input appears to end prematurely.