Class ExcelUtils


  • public class ExcelUtils
    extends Object
    The type Excel utils.
    • Constructor Summary

      Constructors 
      Constructor Description
      ExcelUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void autoSizeColumns​(org.apache.poi.ss.usermodel.Sheet sheet)
      Auto size columns.
      static void autoSizeColumns​(org.apache.poi.ss.usermodel.Workbook workbook)
      Auto size columns.
      static org.apache.poi.ss.usermodel.Cell currentCell​(org.apache.poi.ss.usermodel.Row row)
      Current cell cell.
      static org.apache.poi.ss.usermodel.Row currentRow​(org.apache.poi.ss.usermodel.Sheet sheet)
      Current row row.
      static org.apache.poi.ss.usermodel.Cell newCell​(org.apache.poi.ss.usermodel.Row row)
      New cell cell.
      static org.apache.poi.ss.usermodel.Row newRow​(org.apache.poi.ss.usermodel.Sheet sheet)
      New row row.
    • Constructor Detail

      • ExcelUtils

        public ExcelUtils()
    • Method Detail

      • currentRow

        public static org.apache.poi.ss.usermodel.Row currentRow​(org.apache.poi.ss.usermodel.Sheet sheet)
        Current row row.
        Parameters:
        sheet - the sheet
        Returns:
        the row
      • newRow

        public static org.apache.poi.ss.usermodel.Row newRow​(org.apache.poi.ss.usermodel.Sheet sheet)
        New row row.
        Parameters:
        sheet - the sheet
        Returns:
        the row
      • currentCell

        public static org.apache.poi.ss.usermodel.Cell currentCell​(org.apache.poi.ss.usermodel.Row row)
        Current cell cell.
        Parameters:
        row - the row
        Returns:
        the cell
      • newCell

        public static org.apache.poi.ss.usermodel.Cell newCell​(org.apache.poi.ss.usermodel.Row row)
        New cell cell.
        Parameters:
        row - the row
        Returns:
        the cell
      • autoSizeColumns

        public static void autoSizeColumns​(org.apache.poi.ss.usermodel.Workbook workbook)
        Auto size columns.
        Parameters:
        workbook - the workbook
      • autoSizeColumns

        public static void autoSizeColumns​(org.apache.poi.ss.usermodel.Sheet sheet)
        Auto size columns.
        Parameters:
        sheet - the sheet