xlsx 지원 수정

master
mjkhan21 3 months ago
parent 919b7055d4
commit e00c038719

@ -18,6 +18,13 @@ import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import cokr.xit.foundation.util.DateFormats;
public class XLSReader extends XLS {
private boolean xlsx;
public XLSReader xlsx(boolean xlsx) {
this.xlsx = xlsx;
return this;
}
public XLSReader open(InputStream input) {
load(input);
return this;
@ -30,6 +37,8 @@ public class XLSReader extends XLS {
@Override
protected Workbook newWorkbook(InputStream input) throws Exception {
if (xlsx)
return super.newWorkbook(input);
if (input == null)
return new SXSSFWorkbook(rowAccessWindowSize);

Loading…
Cancel
Save