Class TextReaderSource
Concrete implementation of the IHtmlSource interface for pulling HTML from a TextReader.
Inheritance
System.Object
TextReaderSource
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.HtmlParsing
Assembly: EPiServer.Framework.dll
Version: 11.20.7Syntax
public class TextReaderSource : IHtmlSource
Constructors
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 = 64
Field 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 |