public void flush() {
    try {
      workbook.write(outputStream);
    } catch (Exception e) {
      e.printStackTrace();
      throw new RuntimeException(e.getMessage());
    }
  }
public void flush ( ) { try { workbook . write ( outputStream ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; throw new RuntimeException ( e . getMessage ( ) ) ; } }
<p>
close.
</p>