Метод | Описание | |
---|---|---|
Create ( Stream html, |
Creates a new document from a Stream of HTML using the options passed.
|
|
ElementFactory ( IDomIndexProvider domIndexProvider ) : System |
Creates a factory using the DomIndexProvider passed by parameter
|
|
Parse ( Stream inputStream, |
Given a TextReader, create a new IDomDocument from the input.
|
Метод | Описание | |
---|---|---|
CheckForReEncode ( ) : void |
If a new character set encoding was declared and it's too late to change, switch to the new one midstream.
|
|
ConfigureDefaultContextMap ( ) : void |
Configure default context: creates a default context for arbitrary fragments so they are valid no matter what, so that true fragments can be created without concern for the context
|
|
ConfigureTreeBuilderForParsingMode ( ) : void | ||
ElementFactory ( ) : System |
Static constructor.
|
|
GetContext ( string tag ) : string |
Gets a default context for a tag
|
|
GetContextFromStream ( TextReader reader, string &context ) : TextReader |
Gets a context by inspecting the beginning of a stream. Will restore the stream to its unaltered state.
|
|
GetDocType ( DocType docType ) : DocType | ||
GetNewParser ( ) : |
||
GetNewParser ( HtmlParsingMode parsingMode, HtmlParsingOptions parsingOptions, DocType docType ) : |
||
InitializeTreeBuilder ( ) : void | ||
MergeOptions ( HtmlParsingOptions options ) : HtmlParsingOptions | ||
Reset ( ) : void | ||
SetDefaultContext ( string tags, string context ) : void | ||
Tokenize ( ) : void | ||
tokenizer_EncodingDeclared ( object sender, HtmlParserSharp.Common.EncodingDetectedEventArgs e ) : void |
Event is called by the tokenizer when a content-encoding meta tag is found. We should just always return true.
|
public static Create ( Stream html, |
||
html | Stream | /// The HTML input. /// |
streamEncoding | /// The character set encoding used by the stream. If null, the BOM will be inspected, and it /// will default to UTF8 if no encoding can be identified. /// | |
parsingMode | HtmlParsingMode | /// (optional) the parsing mode. /// |
parsingOptions | HtmlParsingOptions | /// (optional) options for controlling the parsing. /// |
docType | DocType | /// (optional) type of the document. /// |
Результат | IDomDocument |
public ElementFactory ( IDomIndexProvider domIndexProvider ) : System | ||
domIndexProvider | IDomIndexProvider | /// The DomIndexProvider that will be used when creating new DomDocument objects from this factory. /// |
Результат | System |
public Parse ( Stream inputStream, |
||
inputStream | Stream | /// The HTML input. /// |
encoding | /// The encoding. /// | |
Результат | IDomDocument |