List of usage examples for org.apache.poi.xwpf.usermodel XWPFTableRow getTableICells
public List<ICell> getTableICells()
From source file:org.apache.tika.parser.microsoft.ooxml.XWPFWordExtractorDecorator.java
License:Apache License
private void extractTable(XWPFTable table, XWPFListManager listManager, XHTMLContentHandler xhtml) throws SAXException, XmlException, IOException { xhtml.startElement("table"); xhtml.startElement("tbody"); for (XWPFTableRow row : table.getRows()) { xhtml.startElement("tr"); for (ICell cell : row.getTableICells()) { xhtml.startElement("td"); if (cell instanceof XWPFTableCell) { extractIBodyText((XWPFTableCell) cell, listManager, xhtml); } else if (cell instanceof XWPFSDTCell) { xhtml.characters(((XWPFSDTCell) cell).getContent().getText()); }// ww w.j a v a2 s . c o m xhtml.endElement("td"); } xhtml.endElement("tr"); } xhtml.endElement("tbody"); xhtml.endElement("table"); }