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
System.Object
System.MarshalByRefObject
System.IO.TextReader
BlockingTextReader
Implements
System.IDisposable
Inherited Members
System.IO.TextReader.Null
System.IO.TextReader.Dispose()
System.IO.TextReader.ReadAsync(System.Char[], System.Int32, System.Int32)
System.IO.TextReader.ReadBlockAsync(System.Char[], System.Int32, System.Int32)
System.IO.TextReader.ReadLine()
System.IO.TextReader.ReadLineAsync()
System.IO.TextReader.ReadToEnd()
System.IO.TextReader.ReadToEndAsync()
System.IO.TextReader.Synchronized(System.IO.TextReader)
System.MarshalByRefObject.GetLifetimeService()
System.MarshalByRefObject.InitializeLifetimeService()
System.MarshalByRefObject.MemberwiseClone(System.Boolean)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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(System.Char[], System.Int32, System.Int32) 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
Implements
System.IDisposable