Html Tokenizer(Stream, Encoding) Constructor
Initialize a new instance of the HtmlTokenizer class.
Definition
Namespace: MimeKit.Text
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public HtmlTokenizer(
Stream stream,
Encoding encoding
)Parameters
Remarks
Creates a new HtmlTokenizer.
This constructor will attempt to auto-detect the appropriate encoding to use by examining the first four bytes of the stream and, if a unicode byte-order-mark is detected, use the appropriate unicode encoding. If no byte order mark is detected, then it will default to the user-supplied encoding.