public class JWEOfficeR extends Object
| 构造器和说明 |
|---|
JWEOfficeR(InputStream fis,
JWEOfficeEnum xls_xlsx)
构造方法
|
JWEOfficeR(String filePath,
JWEOfficeEnum xls_xlsx)
构造方法
|
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.poi.ss.usermodel.Workbook |
getWorkbook()
取得 Workbook 接口的实例。
|
static <T> List<T> |
readExcel_xls(Class<T> c,
int sheetIndex,
InputStream fis)
通过输入流,读取excel文档的内容 到 集合中
|
static <T> List<T> |
readExcel_xls(Class<T> c,
int sheetIndex,
String filePath)
读取excel文档的内容 到 集合中
|
static <T> List<T> |
readExcel_xls(Class<T> c,
String sheetName,
InputStream fis)
通过输入流,读取excel文档的内容 到 集合中
|
static <T> List<T> |
readExcel_xls(Class<T> c,
String sheetName,
String filePath)
读取excel文档的内容 到 集合中
|
static <T> List<T> |
readExcel_xlsx(Class<T> c,
int sheetIndex,
InputStream fis)
通过输入流,读取excel文档的内容 到 集合中
|
static <T> List<T> |
readExcel_xlsx(Class<T> c,
int sheetIndex,
String filePath)
读取excel文档的内容 到 集合中
|
static <T> List<T> |
readExcel_xlsx(Class<T> c,
String sheetName,
InputStream fis)
通过输入流,读取excel文档的内容 到 集合中
|
static <T> List<T> |
readExcel_xlsx(Class<T> c,
String sheetName,
String filePath)
读取excel文档的内容 到 集合中
|
<T> List<T> |
readExcel(Class<T> c,
int sheetIndex)
通过输入流,读取excel文档的内容 到 集合中
|
<T> List<T> |
readExcel(Class<T> c,
String sheetName)
通过输入流,读取excel文档的内容 到 集合中
|
public JWEOfficeR(InputStream fis, JWEOfficeEnum xls_xlsx) throws IOException
fis - InputStream 输入流xls_xlsx - JWEOfficeEnum 元素 指明是xlx还是xlsx格式IOException - io流异常public JWEOfficeR(String filePath, JWEOfficeEnum xls_xlsx) throws IOException
filePath - String 文件路径xls_xlsx - JWEOfficeEnum 元素 指明是xlx还是xlsx格式IOException - io流异常public org.apache.poi.ss.usermodel.Workbook getWorkbook()
public <T> List<T> readExcel(Class<T> c, String sheetName) throws Exception
T - 相关的特征类c - 相关的特征类sheetName - excel工作表名称Exception - 异常public <T> List<T> readExcel(Class<T> c, int sheetIndex) throws Exception
T - 相关的特征类c - 相关的特征类sheetIndex - 第几个excel工作表Exception - 异常public static <T> List<T> readExcel_xls(Class<T> c, String sheetName, String filePath) throws Exception
T - 相关的特征类c - 相关的特征类sheetName - excel工作表名称filePath - excel文档的路径Exception - 异常public static <T> List<T> readExcel_xls(Class<T> c, int sheetIndex, String filePath) throws Exception
T - 相关的特征类c - 相关的特征类sheetIndex - 第几个excel工作表filePath - excel文档的路径Exception - 异常public static <T> List<T> readExcel_xls(Class<T> c, String sheetName, InputStream fis) throws Exception
T - 相关的特征类c - 相关的特征类sheetName - excel工作表名称fis - 输入流Exception - 异常public static <T> List<T> readExcel_xls(Class<T> c, int sheetIndex, InputStream fis) throws Exception
T - 相关的特征类c - 相关的特征类sheetIndex - 第几个excel工作表fis - 输入流Exception - 异常public static <T> List<T> readExcel_xlsx(Class<T> c, String sheetName, String filePath) throws Exception
T - 相关的特征类c - 相关的特征类sheetName - excel工作表名称filePath - excel文档的路径Exception - 异常public static <T> List<T> readExcel_xlsx(Class<T> c, int sheetIndex, String filePath) throws Exception
T - 相关的特征类c - 相关的特征类sheetIndex - 第几个excel工作表filePath - excel文档的路径Exception - 异常public static <T> List<T> readExcel_xlsx(Class<T> c, String sheetName, InputStream fis) throws Exception
T - 相关的特征类c - 相关的特征类sheetName - excel工作表名称fis - 输入流Exception - 异常public static <T> List<T> readExcel_xlsx(Class<T> c, int sheetIndex, InputStream fis) throws Exception
T - 相关的特征类c - 相关的特征类sheetIndex - 第几个excel工作表fis - 输入流Exception - 异常Copyright © 2019. All rights reserved.