public List<List<String>> readExcel2List(String excelPath, int offsetLine, int limitLine, int sheetIndex)
            throws IOException, InvalidFormatException {

        try (Workbook workbook = WorkbookFactory.create(new FileInputStream(new File(excelPath)))) {
            return readExcel2ObjectsHandler(workbook, offsetLine, limitLine, sheetIndex);
        }
    }
public List < List < String > > readExcel2List ( String excelPath , int offsetLine , int limitLine , int sheetIndex ) throws IOException , InvalidFormatException { try ( Workbook workbook = WorkbookFactory . create ( new FileInputStream ( new File ( excelPath ) ) ) ) { return readExcel2ObjectsHandler ( workbook , offsetLine , limitLine , sheetIndex ) ; } }
读取Excel表格数据,返回{@code List[List[String]]}类型的数据集合

@param excelPath  待读取Excel的路径
@param offsetLine Excel表头行(默认是0)
@param limitLine  最大读取行数(默认表尾)
@param sheetIndex Sheet索引(默认0)
@return 返回{@code List<List<String>>}类型的数据集合
@throws IOException            异常
@throws InvalidFormatException 异常
@author Crab2Died