public interface SherdogParser<T>
Modifier and Type | Method and Description |
---|---|
default T |
parse(String url)
Parse a sherdog page
|
T |
parseDocument(org.jsoup.nodes.Document doc)
Parses a jsoup document
|
default T |
parseFromHtml(String html)
Parses a document from the HTML source code directly
|
default T parse(String url) throws IOException, ParseException, SherdogParserException
url
- of the sherdog pageIOException
- if connecting to sherdog failsParseException
- if the page structure has changedSherdogParserException
- if anythign related to the parser goes wrongdefault T parseFromHtml(String html) throws IOException, ParseException
html
- the HTML source codeIOException
- if connecting to sherdog failsParseException
- if the page structure has changedT parseDocument(org.jsoup.nodes.Document doc) throws ParseException, IOException
doc
- the document to parseIOException
- if connecting to sherdog failsParseException
- if the page structure has changedCopyright © 2019. All rights reserved.