C# Class CsQuery.HtmlParser.BOMReader

A class to parse and expose information about the byte order marks (BOM) for a stream.
Afficher le fichier Open project: prepare/HTML-Renderer Class Usage Examples

Méthodes publiques

Méthode Description
BOMReader ( Stream stream ) : System

Default constructor.

GetEncoding ( Encoding defaultEncoding ) : Encoding

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

Méthodes protégées

Méthode Description
Parse ( ) : void

Parses the input stream to obtain an encoding

Private Methods

Méthode Description
GetEncodingFromXML ( ) : Encoding
GetFileEncoding ( ) : Encoding
Matches ( byte buffer ) : bool

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

Method Details

BOMReader() public méthode

Default constructor.
public BOMReader ( Stream stream ) : System
stream Stream /// The stream to analyze. ///
Résultat System

GetEncoding() public méthode

Gets the encoding, or the default encoding provided if no explicit encoding is available
public GetEncoding ( Encoding defaultEncoding ) : Encoding
defaultEncoding System.Text.Encoding
Résultat System.Text.Encoding

Parse() protected méthode

Parses the input stream to obtain an encoding
protected Parse ( ) : void
Résultat void