Show / Hide Table of Contents

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
ParsingTextReader
BufferedTextReader
BlockingTextReader
Implements
System.IDisposable
Inherited Members
BufferedTextReader.DefaultBufferSize
BufferedTextReader.ReadBlock(char[], int, int)
BufferedTextReader.Read(char[], int, int)
BufferedTextReader.Read()
BufferedTextReader.Peek()
BufferedTextReader.EndOfStream
BufferedTextReader.Close()
ParsingTextReader.Create(TextReader, int)
ParsingTextReader.Create(TextReader)
ParsingTextReader.Create(Stream, int)
ParsingTextReader.Create(Stream)
ParsingTextReader.CreateBlocking(TextReader)
ParsingTextReader.CreateBlocking(TextReader, int)
ParsingTextReader.CreateNonBlocking(TextReader)
ParsingTextReader.CreateNonBlocking(TextReader, int)
System.IO.TextReader.Null
System.IO.TextReader.Dispose()
System.IO.TextReader.ReadAsync(char[], int, int)
System.IO.TextReader.ReadBlockAsync(char[], int, int)
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()
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
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(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 Source

FillBuffer()

Fills the Buffer.

Declaration
protected override void FillBuffer()
Overrides
BufferedTextReader.FillBuffer()
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.

Implements

System.IDisposable

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Methods
    • FillBuffer()
  • Implements
  • Extension Methods
Back to top Generated by DocFX