This example displays the format of the spreadsheet.
System.out.println(spreadsheet.getSaveFormat());
Related information
SaveFormat property