public class ExcelSaxUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static char |
CELL_FILL_CHAR |
static int |
MAX_CELL_BIT |
| Constructor and Description |
|---|
ExcelSaxUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
countNullCell(String preRef,
String ref)
计算两个单元格之间的单元格数目(同一行)
|
static String |
formatCellContent(String value,
int numFmtIndex,
String numFmtString)
格式化数字或日期值
|
static Object |
getDataValue(CellDataType cellDataType,
String value,
org.apache.poi.xssf.model.SharedStringsTable sharedStringsTable,
String numFmtString)
根据数据类型获取数据
|
public static final char CELL_FILL_CHAR
public static final int MAX_CELL_BIT
public static Object getDataValue(CellDataType cellDataType, String value, org.apache.poi.xssf.model.SharedStringsTable sharedStringsTable, String numFmtString)
cellDataType - 数据类型枚举value - 数据值sharedStringsTable - SharedStringsTablenumFmtString - 数字格式名public static String formatCellContent(String value, int numFmtIndex, String numFmtString)
value - 值numFmtIndex - 数字格式索引numFmtString - 数字格式名Copyright © 2019. All rights reserved.