code: private void flush() {
          try {
              if (this.isSkipBlankRow && this.isBlankLastRow) {
                  //若不需要写入空行,且上一行为空行的话则保留上一行不被刷入缓存
                  ((SXSSFSheet) this.currentSheet).flushRows(1);
              } else {
                  ((SXSSFSheet) this.currentSheet).flushRows();
              }
          } catch (Exception e) {
              throw new WriteExcelRuntimeException("Flush Error");
          }
      }
docs: 将内存中的Excel数据刷入缓存