title: DeferredSXSSFWorkbook autosizing of columns
body: <p>Is it possible to autosize columns with <code>DeferredSXSSFWorkbook</code> / <code>setRowGenerator</code>?</p>
  <p>I've set <code>rowAccessWindowSize</code> to 25 and attempt to autosize at row 20 but it doesn't do anything.</p>
  <p>Simplified example:</p>
  <pre class="lang-java prettyprint-override"><code>var wb = new DeferredSXSSFWorkbook(25);
  var sheet1 = wb.createSheet(&quot;sheet1&quot;);
  sheet1.setRowGenerator(sheet -&gt; {
    sheet.trackAllColumnsForAutoSizing();
    var row = sheet.createRow(0);
    row.createCell(0).setCellValue(&quot;Some very long string that exceeds default column width&quot;);
    sheet.autoSizeColumn(0);
  });
  wb.write(new FileOutputStream(&quot;test.xlsx&quot;));
  </code></pre>
  <p>Equivalent code with <code>XSSFWorkbook</code> (no streaming) works correctly.</p>
  <p>Created a replit to demonstrate but for some reason it generates corrupted files: <a href="https://replit.com/@MarcinWinicki/DeferredSXSSFWorkbook-autosizing?v=1" rel="nofollow noreferrer">https://replit.com/@MarcinWinicki/DeferredSXSSFWorkbook-autosizing?v=1</a></p>