Class ExcelUtility
java.lang.Object
io.github.mbenincasa.javaexcelutils.tools.ExcelUtility
ExcelUtility is the static class with the implementations of some utilities on Excel files- Since:
- 0.2.0
- Author:
- Mirko Benincasa
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcheckExcelExtension(String filename) Check if the extension is that of an Excel filestatic int[]getCellIndexes(String cellName) Return an array containing column and row indexesstatic StringgetCellName(int row, int col) Returns the cell namestatic BooleanisValidExcelExtension(String extension) Check if the extension is that of an Excel file
-
Constructor Details
-
ExcelUtility
public ExcelUtility()
-
-
Method Details
-
checkExcelExtension
Check if the extension is that of an Excel file- Parameters:
filename- The name of the file with extension- Returns:
- The name of the extension
- Throws:
ExtensionNotValidException- If the filename extension does not belong to an Excel file
-
isValidExcelExtension
Check if the extension is that of an Excel file- Parameters:
extension- The file's extension- Returns:
trueif it is the extension of an Excel file
-
getCellName
Returns the cell name- Parameters:
row- row indexcol- column index- Returns:
- cell name
- Since:
- 0.4.2
-
getCellIndexes
Return an array containing column and row indexes- Parameters:
cellName- cell name- Returns:
- an array containing column and row indexes
- Since:
- 0.4.2
-