public class FighterParser extends Object implements SherdogParser<Fighter>
| Constructor and Description |
|---|
FighterParser(PictureProcessor processor)
Create a fight parser with a specified cache folder
|
FighterParser(PictureProcessor processor,
java.time.ZoneId zoneId)
Generates a fight parser with specified cache folder and zone id
|
FighterParser(java.time.ZoneId zoneId)
FighterPArser with default cache folder location
|
| Modifier and Type | Method and Description |
|---|---|
Fighter |
parseDocument(org.jsoup.nodes.Document doc)
Parse a sherdog page
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitparse, parseFromHtmlpublic FighterParser(PictureProcessor processor)
processor - the picture processor to use for the fighter picturespublic FighterParser(PictureProcessor processor, java.time.ZoneId zoneId)
processor - the picture processor to use for the fighter pictureszoneId - specified zone id for time conversionpublic FighterParser(java.time.ZoneId zoneId)
zoneId - specified zone id for time conversionpublic Fighter parseDocument(org.jsoup.nodes.Document doc) throws IOException
parseDocument in interface SherdogParser<Fighter>doc - Jsoup document of the sherdog pageIOException - if connecting to sherdog failsCopyright © 2019. All rights reserved.