Class PoiUtils

java.lang.Object
org.fugerit.java.doc.mod.poi.PoiUtils

public class PoiUtils extends Object
  • Method Details

    • 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
    • newHelper

      public static WorkbookHelper newHelper(boolean xlsx, InputStream is) throws IOException
      Throws:
      IOException
    • autoresizeFailHandler

      public static Consumer<Exception> autoresizeFailHandler(boolean failOnAutoResizeError)