Class HtmlTableHandler

java.lang.Object
org.getalp.dbnary.morphology.HtmlTableHandler
Direct Known Subclasses:
TableExtractor

public class HtmlTableHandler extends Object
  • Constructor Details

    • HtmlTableHandler

      public HtmlTableHandler()
  • Method Details

    • explodeTable

      public static 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. 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

      public static String getBackgroundColor(org.jsoup.nodes.Element element)