Class BlockingTextReader
The BlockingTextReader is an implementation of a BufferedTextReader designed to wrap other readers which may or may not have high latency and thus ensures that premature end of input bug is not experienced.
Inheritance
Implements
Inherited Members
Namespace: VDS.RDF.Parsing
Assembly: dotNetRdf.dll
Syntax
public sealed class BlockingTextReader : BufferedTextReader, IDisposable
Remarks
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 System.IO.TextReader.ReadBlock(char[], int, int) method of the underlying System.IO.TextReader thus avoiding the scenario where input appears to end prematurely.
Methods
| Improve this Doc View SourceFillBuffer()
Fills the Buffer.
Declaration
protected override void FillBuffer()
Overrides
Remarks
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 System.IO.TextReader.ReadBlock(char[], int, int) method of the underlying System.IO.TextReader thus avoiding the scenario where input appears to end prematurely.