public class XSSFWorkbookUtils
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
(专用程序包) static java.lang.String[] |
borderStyles |
(专用程序包) static java.lang.String[] |
bordesr |
限定符 | 构造器和说明 |
---|---|
private |
XSSFWorkbookUtils() |
限定符和类型 | 方法和说明 |
---|---|
private static java.lang.String |
convertAlignToHtml(org.apache.poi.ss.usermodel.HorizontalAlignment alignment)
单元格内容的水平对齐方式 331
|
private static java.lang.String |
convertVerticalAlignToHtml(org.apache.poi.ss.usermodel.VerticalAlignment verticalAlignment) |
private static void |
dealExcelStyle(org.apache.poi.ss.usermodel.Sheet sheet,
org.apache.poi.ss.usermodel.Cell cell,
java.lang.StringBuilder sb)
处理表格样式
|
private static java.lang.String |
getBorderStyle(int b,
short s,
org.apache.poi.xssf.usermodel.XSSFColor xc) |
private static java.lang.String |
getCellValue(org.apache.poi.ss.usermodel.Cell cell)
获取表格单元格Cell内容
|
static java.lang.String |
workbookToHtml(org.apache.poi.ss.usermodel.Workbook wb) |
static java.lang.String[] bordesr
static java.lang.String[] borderStyles
public static java.lang.String workbookToHtml(org.apache.poi.ss.usermodel.Workbook wb)
private static java.lang.String getCellValue(org.apache.poi.ss.usermodel.Cell cell)
private static void dealExcelStyle(org.apache.poi.ss.usermodel.Sheet sheet, org.apache.poi.ss.usermodel.Cell cell, java.lang.StringBuilder sb)
private static java.lang.String convertAlignToHtml(org.apache.poi.ss.usermodel.HorizontalAlignment alignment)
private static java.lang.String convertVerticalAlignToHtml(org.apache.poi.ss.usermodel.VerticalAlignment verticalAlignment)
private static java.lang.String getBorderStyle(int b, short s, org.apache.poi.xssf.usermodel.XSSFColor xc)