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