Moved parseExcelBook into parseExcelBookFromResource
This commit is contained in:
@@ -25,8 +25,8 @@ public class FlowableExcelParser {
|
||||
// All cell values are added to an ArrayList in the rows ArrayList
|
||||
// Formulas in cells are evaluated
|
||||
// All values are returned as String
|
||||
private ArrayList<ArrayList<ArrayList<String>>> parseExcelBook(String excelPath) {
|
||||
try (FileInputStream fileInputStream = new FileInputStream(excelPath)) {
|
||||
public ArrayList<ArrayList<ArrayList<String>>> parseExcelBookFromResource(String excelResourcePath) {
|
||||
try (FileInputStream fileInputStream = new FileInputStream(getResourcePath(excelResourcePath))) {
|
||||
Workbook workBook = new XSSFWorkbook(fileInputStream);
|
||||
return parseBook(workBook);
|
||||
} catch (IOException e) {
|
||||
@@ -34,10 +34,6 @@ public class FlowableExcelParser {
|
||||
}
|
||||
}
|
||||
|
||||
public ArrayList<ArrayList<ArrayList<String>>> parseExcelBookFromResource(String excelResourcePath) {
|
||||
return parseExcelBook(getResourcePath(excelResourcePath));
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public ArrayList<ArrayList<String>> parseExcelSheetFromResource(String excelResourcePath) {
|
||||
try (FileInputStream fileInputStream = new FileInputStream(getResourcePath(excelResourcePath))) {
|
||||
|
||||
Reference in New Issue
Block a user