/**
* Stores the data from the object onto disk.
*/
public void store()
{
Workbook wb = this.newWorkbookToWrite();
CreationHelper createHelper = wb.getCreationHelper();
Sheet sheet = wb.createSheet( "all" );
int lineNumber = 0;
for ( TableRow iLine : this.tableRowList )
{
//
Row row = sheet.createRow( lineNumber++ );
//
int cellIndex = 0;
for ( String iCellText : iLine )
{
Cell cell = row.createCell( cellIndex++ );
cell.setCellValue( createHelper.createRichTextString( iCellText ) );
}
}
try
{
final FileOutputStream fileOutputStream = new FileOutputStream( this.file );
final OutputStream outputStream = new BufferedOutputStream( fileOutputStream );
wb.write( outputStream );
outputStream.close();
fileOutputStream.close();
}
catch ( FileNotFoundException e )
{