public class ExcelUtils extends Object
| 构造器和说明 |
|---|
ExcelUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> ExcelResult<T> |
adapter(Class<T> t,
InputStream is) |
static <T> ExcelResult<T> |
adapter(Class<T> t,
org.apache.poi.ss.usermodel.Workbook wb) |
static void |
toFile(String filename,
org.apache.poi.ss.usermodel.Workbook workbook) |
public static <T> ExcelResult<T> adapter(Class<T> t, org.apache.poi.ss.usermodel.Workbook wb) throws IllegalAccessException, InstantiationException
public static <T> ExcelResult<T> adapter(Class<T> t, InputStream is) throws IOException, org.apache.poi.openxml4j.exceptions.InvalidFormatException, InstantiationException, IllegalAccessException
IOExceptionorg.apache.poi.openxml4j.exceptions.InvalidFormatExceptionInstantiationExceptionIllegalAccessExceptionpublic static void toFile(String filename, org.apache.poi.ss.usermodel.Workbook workbook) throws IOException
filename - 文件名workbook - 工作表IOException - io异常Copyright © 2022. All rights reserved.