@Test public void testWriteThreeEqualMaxSheetExcel() { List<ExcelDto> excelDtos = ExcelDataList.getList(); excelDtos.remove(65535); List<ExcelDto> excelDtos1 = ExcelDataList.getList(); excelDtos1.remove(65535); List<ExcelDto> excelDtos2 = ExcelDataList.getList(); excelDtos2.remove(65535); FileExcelWrite.build(fileName) .setLargeDataMode(false) .deal(getTitle(), get(), excelDtos) .deal(getTitle(), get(), excelDtos1) .deal(getTitle(), get(), excelDtos2) .write(); }
public static ExcelWrite build(InputStream inputStream, String fileName) { Objects.requireNonNull(inputStream); Objects.requireNonNull(fileName); return new CopyInputStreamExcelWrite(inputStream, fileName, new FileExcelWrite()); }
FileExcelWrite implements OutputStreamDelegate { public static ExcelWrite build(InputStream inputStream, String fileName) { Objects.requireNonNull(inputStream); Objects.requireNonNull(fileName); return new CopyInputStreamExcelWrite(inputStream, fileName, new FileExcelWrite()); } }
FileExcelWrite implements OutputStreamDelegate { public static ExcelWrite build(InputStream inputStream, String fileName) { Objects.requireNonNull(inputStream); Objects.requireNonNull(fileName); return new CopyInputStreamExcelWrite(inputStream, fileName, new FileExcelWrite()); } private  FileExcelWrite(); }
FileExcelWrite implements OutputStreamDelegate { public static ExcelWrite build(InputStream inputStream, String fileName) { Objects.requireNonNull(inputStream); Objects.requireNonNull(fileName); return new CopyInputStreamExcelWrite(inputStream, fileName, new FileExcelWrite()); } private  FileExcelWrite(); @Override OutputStream createOutputStream(String fileName); static ExcelWrite build(InputStream inputStream, String fileName); static ExcelWrite build(String fileName); }
FileExcelWrite implements OutputStreamDelegate { public static ExcelWrite build(InputStream inputStream, String fileName) { Objects.requireNonNull(inputStream); Objects.requireNonNull(fileName); return new CopyInputStreamExcelWrite(inputStream, fileName, new FileExcelWrite()); } private  FileExcelWrite(); @Override OutputStream createOutputStream(String fileName); static ExcelWrite build(InputStream inputStream, String fileName); static ExcelWrite build(String fileName);  }