public class HSSFOptimiser extends java.lang.Object
|Constructor and Description|
|Modifier and Type||Method and Description|
Goes through the Wokrbook, optimising the cell styles by removing duplicate ones, and ones that aren't used.
Goes through the Workbook, optimising the fonts by removing duplicate ones.
public static void optimiseFonts(HSSFWorkbook workbook)
HSSFRichTextString. Any other font uses (eg charts, pictures) may well end up broken! This can be a slow operation, especially if you have lots of cells, cell styles or rich text strings
workbook- The workbook in which to optimise the fonts
public static void optimiseCellStyles(HSSFWorkbook workbook)
workbook- The workbook in which to optimise the cell styles
Copyright 2014 The Apache Software Foundation or its licensors, as applicable.