Skip to content

Commit

Permalink
add empty workbook
Browse files Browse the repository at this point in the history
  • Loading branch information
liaochong committed May 25, 2024
1 parent 60ea67b commit 8cff67d
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,16 @@ private DefaultStreamExcelBuilder(Class<T> dataType, Path excel) {
this.isMapBuild = dataType == Map.class;
}

/**
* 创建空的workbook
*
* @return empty workbook
*/
public static Workbook createEmptyWorkbook() {
DefaultStreamExcelBuilder<Cell> emptyStreamExcelBuilder = DefaultStreamExcelBuilder.of(Cell.class).start();
return emptyStreamExcelBuilder.build();
}

/**
* 获取实例,设定需要渲染的数据的类类型
*
Expand Down

0 comments on commit 8cff67d

Please sign in to comment.