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 SummaryConstructors
- 
Method SummaryModifier 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- 
ExcelUtilitypublic ExcelUtility()
 
- 
- 
Method Details- 
checkExcelExtensionCheck 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
 
- 
isValidExcelExtensionCheck 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
 
- 
getCellNameReturns the cell name- Parameters:
- row- row index
- col- column index
- Returns:
- cell name
- Since:
- 0.4.2
 
- 
getCellIndexesReturn an array containing column and row indexes- Parameters:
- cellName- cell name
- Returns:
- an array containing column and row indexes
- Since:
- 0.4.2
 
 
-