Class HtmlTableHandler
java.lang.Object
org.getalp.dbnary.morphology.HtmlTableHandler
- Direct Known Subclasses:
TableExtractor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ArrayMatrix<org.jsoup.nodes.Element> explodeTable(org.jsoup.nodes.Element table) Explode the HTMLTable into an array matrix where all cells are contained in Matrix cells.static StringgetBackgroundColor(org.jsoup.nodes.Element element)
-
Constructor Details
-
HtmlTableHandler
public HtmlTableHandler()
-
-
Method Details
-
explodeTable
Explode the HTMLTable into an array matrix where all cells are contained in Matrix cells. If a cell spans several rows/columns, it is duplicated in the different Matric cell.- Parameters:
table- the HTML Table to be exploded- Returns:
- An ArrayMatrix containing the exploded version of the html table.
-
getBackgroundColor
-