Class TextReaderSource
Concrete implementation of the IHtmlSource interface for pulling HTML from a TextReader.
Inheritance
System.Object
    TextReaderSource
  Implements
Namespace: EPiServer.HtmlParsing
Assembly: EPiServer.Framework.dll
Version: 12.0.3Syntax
public class TextReaderSource : Object, IHtmlSourceConstructors
TextReaderSource(TextReader)
Initializes a new instance of the TextReaderSource class.
Declaration
public TextReaderSource(TextReader reader)Parameters
| Type | Name | Description | 
|---|---|---|
| System.IO.TextReader | reader | The reader. | 
Fields
PushbackBufferSize
Declaration
public const int PushbackBufferSize = 64Field Value
| Type | Description | 
|---|---|
| System.Int32 | 
Methods
Peek()
Peeks at the next character from the source.
Declaration
public char Peek()Returns
| Type | Description | 
|---|---|
| System.Char | The next character. If End-Of-Stream reached, returns 0xffff | 
Pushback(Char)
Push back the specified character.
Declaration
public void Pushback(char character)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Char | character | The character. | 
Remarks
The pushback supports at least 64 characters in the pushback buffer.
Read()
Reads the next character from the source.
Declaration
public char Read()Returns
| Type | Description | 
|---|---|
| System.Char | The next character. If End-Of-Stream reached, returns 0xffff | 
