C# Класс MediaPortal.Utils.Web.HtmlParser

Parses HTML site from given Template
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GetData ( int index ) : IParserData

Gets the data.

GetHyperLink ( int index, string match, MediaPortal.Utils.Web.HTTPRequest &linkURL ) : bool

Gets the hyper link.

HtmlParser ( MediaPortal.Utils.Web.HtmlParserTemplate template, Type parserDataType ) : System

Initializes a new instance of the HtmlParser class.

ParseUrl ( MediaPortal.Utils.Web.HTTPRequest site ) : int

Parses the URL and returns the number of instances of the template found on this site

SearchRegex ( int index, string regex, bool remove ) : string

Searches the regex.

SearchRegex ( int index, string regex, bool caseinsensitive, bool remove ) : string

Searches the regex.

SearchRegex ( int index, string regex, bool caseinsensitive, bool remove, string replace ) : string

Searches the regex.

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

Метод Описание
GetJavaSubLinkParams ( string link ) : string[]

Gets the java sub link params.

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

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

Gets the data.
public GetData ( int index ) : IParserData
index int The index.
Результат IParserData

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

Gets the hyper link.
public GetHyperLink ( int index, string match, MediaPortal.Utils.Web.HTTPRequest &linkURL ) : bool
index int The index.
match string The match.
linkURL MediaPortal.Utils.Web.HTTPRequest The link URL.
Результат bool

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

Initializes a new instance of the HtmlParser class.
public HtmlParser ( MediaPortal.Utils.Web.HtmlParserTemplate template, Type parserDataType ) : System
template MediaPortal.Utils.Web.HtmlParserTemplate The template.
parserDataType System.Type Type of the parser data.
Результат System

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

Parses the URL and returns the number of instances of the template found on this site
public ParseUrl ( MediaPortal.Utils.Web.HTTPRequest site ) : int
site MediaPortal.Utils.Web.HTTPRequest The site.
Результат int

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

Searches the regex.
public SearchRegex ( int index, string regex, bool remove ) : string
index int The index.
regex string The regex.
remove bool if set to true [remove].
Результат string

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

Searches the regex.
public SearchRegex ( int index, string regex, bool caseinsensitive, bool remove ) : string
index int The index.
regex string The regex.
caseinsensitive bool if set to true [caseinsensitive].
remove bool if set to true [remove].
Результат string

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

Searches the regex.
public SearchRegex ( int index, string regex, bool caseinsensitive, bool remove, string replace ) : string
index int The index.
regex string The regex.
caseinsensitive bool if set to true [caseinsensitive].
remove bool if set to true [remove].
replace string the string to [replace] found string if set.
Результат string