C# Класс CsQuery.HtmlParser.BOMReader

A class to parse and expose information about the byte order marks (BOM) for a stream.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
BOMReader ( Stream stream ) : System

Default constructor.

GetEncoding ( Encoding defaultEncoding ) : Encoding

Gets the encoding, or the default encoding provided if no explicit encoding is available

Защищенные методы

Метод Описание
Parse ( ) : void

Parses the input stream to obtain an encoding

Приватные методы

Метод Описание
GetEncodingFromXML ( ) : Encoding
GetFileEncoding ( ) : Encoding
Matches ( byte buffer ) : bool

Test if the header matches the bytes passed (up to the length of the array passed)

Описание методов

BOMReader() публичный Метод

Default constructor.
public BOMReader ( Stream stream ) : System
stream Stream /// The stream to analyze. ///
Результат System

GetEncoding() публичный Метод

Gets the encoding, or the default encoding provided if no explicit encoding is available
public GetEncoding ( Encoding defaultEncoding ) : Encoding
defaultEncoding System.Text.Encoding
Результат System.Text.Encoding

Parse() защищенный Метод

Parses the input stream to obtain an encoding
protected Parse ( ) : void
Результат void