public class ExcelHelp extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getStringValue(org.apache.poi.ss.usermodel.Row row,
int cIndex)
获取文本内容
|
static String |
getStringValue(org.apache.poi.ss.usermodel.Row row,
int cIndex,
DecimalFormat decimalFormat)
获取文本内容
|
static String |
getStringValue(org.apache.poi.ss.usermodel.Sheet sheet,
int rIndex,
int cIndex)
获取文本内容
|
static String |
getStringValue(org.apache.poi.ss.usermodel.Sheet sheet,
int rIndex,
int cIndex,
DecimalFormat decimalFormat)
获取文本内容
|
static org.apache.poi.ss.usermodel.Workbook |
getWorkbook(File file)
获取工作薄对象
|
public static String getStringValue(org.apache.poi.ss.usermodel.Sheet sheet, int rIndex, int cIndex)
sheet - 工作表rIndex - 行号cIndex - 列号public static String getStringValue(org.apache.poi.ss.usermodel.Sheet sheet, int rIndex, int cIndex, DecimalFormat decimalFormat)
sheet - 工作表rIndex - 行号cIndex - 列号decimalFormat - 数字格式化public static String getStringValue(org.apache.poi.ss.usermodel.Row row, int cIndex)
row - 行对象cIndex - 列号public static String getStringValue(org.apache.poi.ss.usermodel.Row row, int cIndex, DecimalFormat decimalFormat)
row - 行对象cIndex - 列号decimalFormat - 数字格式化public static org.apache.poi.ss.usermodel.Workbook getWorkbook(File file) throws IOException, NotSupportFileExtensionException
file - 文件对象IOException - 当读取失败的时候抛出IOException异常NotSupportFileExtensionException - 当文件类型不支持的时候抛出DoesNotSupportException异常Copyright © 2018 guerlab. All rights reserved.