Package org.swat.excel.utils
Class ExcelUtils
- java.lang.Object
-
- org.swat.excel.utils.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 voidautoSizeColumns(org.apache.poi.ss.usermodel.Sheet sheet)Auto size columns.static voidautoSizeColumns(org.apache.poi.ss.usermodel.Workbook workbook)Auto size columns.static org.apache.poi.ss.usermodel.CellcurrentCell(org.apache.poi.ss.usermodel.Row row)Current cell cell.static org.apache.poi.ss.usermodel.RowcurrentRow(org.apache.poi.ss.usermodel.Sheet sheet)Current row row.static org.apache.poi.ss.usermodel.CellnewCell(org.apache.poi.ss.usermodel.Row row)New cell cell.static org.apache.poi.ss.usermodel.RownewRow(org.apache.poi.ss.usermodel.Sheet sheet)New row row.
-
-
-
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
-
-