Show / Hide Table of Contents

Class ParsingTextReader

An extended TextReader for use in parsing.

Inheritance
object
MarshalByRefObject
TextReader
ParsingTextReader
BufferedTextReader
Implements
IDisposable
Inherited Members
TextReader.Null
TextReader.Close()
TextReader.Dispose()
TextReader.Dispose(bool)
TextReader.Peek()
TextReader.Read()
TextReader.Read(char[], int, int)
TextReader.ReadAsync(char[], int, int)
TextReader.ReadBlock(char[], int, int)
TextReader.ReadBlockAsync(char[], int, int)
TextReader.ReadLine()
TextReader.ReadLineAsync()
TextReader.ReadToEnd()
TextReader.ReadToEndAsync()
TextReader.Synchronized(TextReader)
MarshalByRefObject.GetLifetimeService()
MarshalByRefObject.InitializeLifetimeService()
MarshalByRefObject.MemberwiseClone(bool)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Parsing
Assembly: dotNetRdf.dll
Syntax
public abstract class ParsingTextReader : TextReader, IDisposable

Properties

| Edit this page View Source

EndOfStream

Gets whether the end of the stream has been reached.

Declaration
public abstract bool EndOfStream { get; }
Property Value
Type Description
bool

Methods

| Edit this page View Source

Create(Stream)

Creates a new Blocking Text Reader.

Declaration
public static ParsingTextReader Create(Stream input)
Parameters
Type Name Description
Stream input

Input Stream.

Returns
Type Description
ParsingTextReader
Remarks

Blocking IO refers to how the parsing sub-system reads in inputs, it will use Blocking/Non-Blocking IO depending on the input source. In most cases the detection of which to use should never cause an issue but theoretically in some rare cases using non-blocking IO may lead to incorrect parsing errors being thrown (premature end of input detected), if you suspect this is the case try enabling this setting. If you still experience this problem with this setting enabled then there is some other issue with your input.

| Edit this page View Source

Create(Stream, int)

Creates a new Blocking Text Reader.

Declaration
public static ParsingTextReader Create(Stream input, int bufferSize)
Parameters
Type Name Description
Stream input

Input Stream.

int bufferSize

Buffer Size.

Returns
Type Description
ParsingTextReader
| Edit this page View Source

Create(TextReader)

Creates a new Blocking Text Reader.

Declaration
public static ParsingTextReader Create(TextReader input)
Parameters
Type Name Description
TextReader input

Text Reader to wrap.

Returns
Type Description
ParsingTextReader
| Edit this page View Source

Create(TextReader, int)

Creates a new Parsing Text Reader.

Declaration
public static ParsingTextReader Create(TextReader input, int bufferSize)
Parameters
Type Name Description
TextReader input

Text Reader to wrap.

int bufferSize

Buffer Size.

Returns
Type Description
ParsingTextReader
Remarks

If the given TextReader is already a ParsingTextReader instance, a NonBlockingTextReader or a BlockingTextReader this is a no-op. If the given TextReader uses a FileStream or MemoryStream as its underlying stream source, then this method will create and return a NonBlockingTextReader, otherwise the method will create a BlockingTextReader.

| Edit this page View Source

CreateBlocking(TextReader)

Creates a new Blocking Text Reader.

Declaration
public static BlockingTextReader CreateBlocking(TextReader input)
Parameters
Type Name Description
TextReader input

Input reader.

Returns
Type Description
BlockingTextReader
| Edit this page View Source

CreateBlocking(TextReader, int)

Creates a new Blocking Text Reader.

Declaration
public static BlockingTextReader CreateBlocking(TextReader input, int bufferSize)
Parameters
Type Name Description
TextReader input

Input reader.

int bufferSize

Buffer Size.

Returns
Type Description
BlockingTextReader
| Edit this page View Source

CreateNonBlocking(TextReader)

Creates a new non-blocking Text Reader.

Declaration
public static NonBlockingTextReader CreateNonBlocking(TextReader input)
Parameters
Type Name Description
TextReader input

Input reader.

Returns
Type Description
NonBlockingTextReader
| Edit this page View Source

CreateNonBlocking(TextReader, int)

Creates a new non-blocking Text Reader.

Declaration
public static NonBlockingTextReader CreateNonBlocking(TextReader input, int bufferSize)
Parameters
Type Name Description
TextReader input

Input reader.

int bufferSize

Buffer Size.

Returns
Type Description
NonBlockingTextReader

Implements

IDisposable

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Properties
    • EndOfStream
  • Methods
    • Create(Stream)
    • Create(Stream, int)
    • Create(TextReader)
    • Create(TextReader, int)
    • CreateBlocking(TextReader)
    • CreateBlocking(TextReader, int)
    • CreateNonBlocking(TextReader)
    • CreateNonBlocking(TextReader, int)
  • Implements
  • Extension Methods
Back to top Generated by DocFX