public class HSSFOptimiser
extends java.lang.Object
Constructor and Description |
---|
HSSFOptimiser() |
Modifier and Type | Method and Description |
---|---|
static void |
optimiseCellStyles(HSSFWorkbook workbook)
Goes through the Wokrbook, optimising the cell styles
by removing duplicate ones, and ones that aren't used.
|
static void |
optimiseFonts(HSSFWorkbook workbook)
Goes through the Workbook, optimising the fonts by
removing duplicate ones.
|
public static void optimiseFonts(HSSFWorkbook workbook)
HSSFCellStyle
and 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 stringsworkbook
- The workbook in which to optimise the fontspublic static void optimiseCellStyles(HSSFWorkbook workbook)
optimiseFonts(HSSFWorkbook)
first.workbook
- The workbook in which to optimise the cell stylesCopyright 2020 The Apache Software Foundation or its licensors, as applicable.