public class ParserUtils extends Object
| Constructor and Description |
|---|
ParserUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
downloadImageToFile(String url,
Path file)
Downloads an image to a file with the adequate headers to the http query
|
static FightType |
getFightType(Sherdog parser,
Fight fight)
Gets the type of a fight (Pro, amateur etc...)
|
static org.jsoup.nodes.Document |
parseDocument(String url)
PArses a URL with all the required parameters
|
public static org.jsoup.nodes.Document parseDocument(String url) throws IOException
url - of the document to parseIOException - if the connection failspublic static void downloadImageToFile(String url, Path file) throws IOException
url - the url of the imagefile - the file to createIOException - if the file download failsCopyright © 2019. All rights reserved.