提交 3b7b6729 编写于 作者: 庄家钜's avatar 庄家钜

移除password方法

上级 2c00f2ef
......@@ -76,13 +76,4 @@ public interface ExcelBuilder {
*/
void finish(boolean onException);
/**
* add password
*
* @param data
* @param writeSheet
* @param writeTable
* @param password
*/
void addContent(List data, WriteSheet writeSheet, WriteTable writeTable, String password);
}
......@@ -68,9 +68,6 @@ public class ExcelBuilderImpl implements ExcelBuilder {
@Override
public void fill(Object data, FillConfig fillConfig, WriteSheet writeSheet) {
try {
if (data == null) {
return;
}
if (context.writeWorkbookHolder().getTempTemplateInputStream() == null) {
throw new ExcelGenerateException("Calling the 'fill' method must use a template.");
}
......@@ -99,24 +96,6 @@ public class ExcelBuilderImpl implements ExcelBuilder {
}
}
@Override
public void addContent(List data, WriteSheet writeSheet, WriteTable writeTable, String password) {
try {
context.currentSheet(writeSheet, WriteTypeEnum.ADD);
context.currentTable(writeTable);
if (excelWriteAddExecutor == null) {
excelWriteAddExecutor = new ExcelWriteAddExecutor(context);
}
excelWriteAddExecutor.add(data);
} catch (RuntimeException e) {
finishOnException();
throw e;
} catch (Throwable e) {
finishOnException();
throw new ExcelGenerateException(e);
}
}
@Override
public void merge(int firstRow, int lastRow, int firstCol, int lastCol) {
CellRangeAddress cra = new CellRangeAddress(firstRow, lastRow, firstCol, lastCol);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册