|
|
|
@ -138,7 +138,17 @@ public class ExcelWriter {
|
|
|
|
|
* @return this current writer |
|
|
|
|
*/ |
|
|
|
|
public ExcelWriter write(List data, WriteSheet writeSheet) { |
|
|
|
|
return write(data, writeSheet, null); |
|
|
|
|
return write(data, writeSheet, (WriteTable)null); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ExcelWriter write(List data, WriteSheet writeSheet, String password) { |
|
|
|
|
return write(data, writeSheet, null, password); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private ExcelWriter write(List data, WriteSheet writeSheet, WriteTable writeTable, String password) { |
|
|
|
|
excelBuilder.addContent(data, writeSheet, writeTable, password); |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -331,12 +341,4 @@ public class ExcelWriter {
|
|
|
|
|
public WriteContext writeContext() { |
|
|
|
|
return excelBuilder.writeContext(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* doEncrypt |
|
|
|
|
* @param password |
|
|
|
|
*/ |
|
|
|
|
public void doEncrypt(String password){ |
|
|
|
|
excelBuilder.setPassword(password); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|