add method

This commit is contained in:
Looly 2022-03-24 22:22:53 +08:00
parent 98e46d7634
commit 9d5d55bf6a
2 changed files with 9 additions and 8 deletions

View File

@ -55,6 +55,7 @@ public class ExcelReader extends ExcelBase<ExcelReader> {
* *
* @param excelFilePath Excel文件路径绝对路径或相对于ClassPath路径 * @param excelFilePath Excel文件路径绝对路径或相对于ClassPath路径
* @param sheetName sheet名第一个默认是sheet1 * @param sheetName sheet名第一个默认是sheet1
* @since 5.8.0
*/ */
public ExcelReader(String excelFilePath, String sheetName) { public ExcelReader(String excelFilePath, String sheetName) {
this(FileUtil.file(excelFilePath), sheetName); this(FileUtil.file(excelFilePath), sheetName);

View File

@ -160,7 +160,7 @@ public class ExcelUtil {
* @param bookFilePath Excel文件路径绝对路径或相对于ClassPath路径 * @param bookFilePath Excel文件路径绝对路径或相对于ClassPath路径
* @param sheetName sheet名第一个默认是sheet1 * @param sheetName sheet名第一个默认是sheet1
* @return {@link ExcelReader} * @return {@link ExcelReader}
* @since 3.1.1 * @since 5.8.0
*/ */
public static ExcelReader getReader(String bookFilePath, String sheetName) { public static ExcelReader getReader(String bookFilePath, String sheetName) {
try { try {