File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
fastexcel-core/src/main/java/cn/idev/excel/support Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 9
9
import cn .idev .excel .exception .ExcelCommonException ;
10
10
import cn .idev .excel .read .metadata .ReadWorkbook ;
11
11
import cn .idev .excel .util .StringUtils ;
12
-
13
12
import lombok .Getter ;
13
+ import org .apache .poi .EmptyFileException ;
14
14
import org .apache .poi .util .IOUtils ;
15
15
16
16
/**
@@ -87,6 +87,8 @@ public static ExcelTypeEnum valueOf(ReadWorkbook readWorkbook) {
87
87
return recognitionExcelType (inputStream );
88
88
} catch (ExcelCommonException e ) {
89
89
throw e ;
90
+ } catch (EmptyFileException e ) {
91
+ throw new ExcelCommonException ("The supplied file was empty (zero bytes long)" );
90
92
} catch (Exception e ) {
91
93
throw new ExcelCommonException (
92
94
"Convert excel format exception.You can try specifying the 'excelType' yourself" , e );
Original file line number Diff line number Diff line change
1
+ # 1.1.0
2
+ 此次升级主要修复历史 BUG,同时剔除了部分依赖库,保证 ` MIT ` 协议下的使用。
3
+
4
+ 具体更新内容如下:
5
+ - 【改进】移除 ` itext ` 依赖库,将 ` 转换PDF ` 功能迁移至新项目;
6
+ - 【修复】fill填充空数据,可能导致行数据错乱的问题;
7
+ - 【修复】打印CSV文件的 ` hashcode ` ,可能会产生的堆栈溢出问题;
8
+ - 【优化】增加报错内容详细信息;
9
+ - 【优化】更新代码格式和部分错别字。
You can’t perform that action at this time.
0 commit comments