Package org.javlo.helper
Class ArrayHelper
- java.lang.Object
-
- org.javlo.helper.ArrayHelper
-
public class ArrayHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description ArrayHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddCol(String[][] array, String colName)static String[]addFirstElem(String[] inArray, String firstValue)insert a value at the fist position in a array of Stringprotected static voidcalcMax(Cell[][] array)static List<String>getTitles(Cell[][] cells)static List<String>getTitles(Cell[][] cells)static Cell[][]getXLSXArray(ContentContext ctx, org.apache.poi.xssf.usermodel.XSSFWorkbook workbook, int sheetNumber)static org.apache.poi.xssf.usermodel.XSSFWorkbookloadWorkBook(InputStream in)static StringreadExcelCell(ContentContext ctx, org.apache.poi.xssf.usermodel.XSSFCell cell)
-
-
-
Method Detail
-
addFirstElem
public static final String[] addFirstElem(String[] inArray, String firstValue)
insert a value at the fist position in a array of String- Parameters:
inArray- a Array of StringfirstValue- the value of the first element- Returns:
- a Array with a new first element (size+1)
-
readExcelCell
public static String readExcelCell(ContentContext ctx, org.apache.poi.xssf.usermodel.XSSFCell cell)
-
calcMax
protected static void calcMax(Cell[][] array)
-
loadWorkBook
public static org.apache.poi.xssf.usermodel.XSSFWorkbook loadWorkBook(InputStream in) throws IOException
- Throws:
IOException
-
getXLSXArray
public static Cell[][] getXLSXArray(ContentContext ctx, org.apache.poi.xssf.usermodel.XSSFWorkbook workbook, int sheetNumber) throws Exception
- Throws:
Exception
-
-