Class PoiUtils


  • public class PoiUtils
    extends Object
    • Method Detail

      • resizeSheet

        public static void resizeSheet​(org.apache.poi.ss.usermodel.Sheet s)
      • autoSizeColumns

        public static void autoSizeColumns​(org.apache.poi.ss.usermodel.Workbook workbook)
      • xlsxFormatStyle

        public static void xlsxFormatStyle​(WorkbookHelper helper,
                                           org.apache.poi.ss.usermodel.CellStyle style,
                                           DocCell cell)
      • xlsxFontStyle

        public static void xlsxFontStyle​(WorkbookHelper helper,
                                         org.apache.poi.ss.usermodel.Font font,
                                         DocCell cell)
      • findClosestColorIndex

        public static short findClosestColorIndex​(org.apache.poi.hssf.usermodel.HSSFWorkbook workbook,
                                                  String color)
      • xlsFormatStyle

        public static void xlsFormatStyle​(WorkbookHelper helper,
                                          org.apache.poi.ss.usermodel.CellStyle style,
                                          DocCell cell)
      • xlsFontStyle

        public static void xlsFontStyle​(WorkbookHelper helper,
                                        org.apache.poi.ss.usermodel.Font font,
                                        DocCell cell)
      • closeWorkbook

        public static void closeWorkbook​(org.apache.poi.ss.usermodel.Workbook workbook,
                                         DocOutput docOutput)
                                  throws IOException
        Throws:
        IOException