mirror of
https://gitee.com/dromara/hutool.git
synced 2025-05-02 20:02:49 +08:00
add method
This commit is contained in:
parent
98e46d7634
commit
9d5d55bf6a
@ -55,6 +55,7 @@ public class ExcelReader extends ExcelBase<ExcelReader> {
|
||||
*
|
||||
* @param excelFilePath Excel文件路径,绝对路径或相对于ClassPath路径
|
||||
* @param sheetName sheet名,第一个默认是sheet1
|
||||
* @since 5.8.0
|
||||
*/
|
||||
public ExcelReader(String excelFilePath, String sheetName) {
|
||||
this(FileUtil.file(excelFilePath), sheetName);
|
||||
|
@ -74,9 +74,9 @@ public class ExcelUtil {
|
||||
/**
|
||||
* 通过Sax方式读取Excel,同时支持03和07格式
|
||||
*
|
||||
* @param file Excel文件
|
||||
* @param idOrRidOrSheetName Excel中的sheet id或rid编号或sheet名称,rid必须加rId前缀,例如rId1,如果为-1处理所有编号的sheet
|
||||
* @param rowHandler 行处理器
|
||||
* @param file Excel文件
|
||||
* @param idOrRidOrSheetName Excel中的sheet id或rid编号或sheet名称,rid必须加rId前缀,例如rId1,如果为-1处理所有编号的sheet
|
||||
* @param rowHandler 行处理器
|
||||
* @since 5.4.4
|
||||
*/
|
||||
public static void readBySax(File file, String idOrRidOrSheetName, RowHandler rowHandler) {
|
||||
@ -101,9 +101,9 @@ public class ExcelUtil {
|
||||
/**
|
||||
* 通过Sax方式读取Excel,同时支持03和07格式
|
||||
*
|
||||
* @param in Excel流
|
||||
* @param idOrRidOrSheetName Excel中的sheet id或rid编号或sheet名称,rid必须加rId前缀,例如rId1,如果为-1处理所有编号的sheet
|
||||
* @param rowHandler 行处理器
|
||||
* @param in Excel流
|
||||
* @param idOrRidOrSheetName Excel中的sheet id或rid编号或sheet名称,rid必须加rId前缀,例如rId1,如果为-1处理所有编号的sheet
|
||||
* @param rowHandler 行处理器
|
||||
* @since 5.4.4
|
||||
*/
|
||||
public static void readBySax(InputStream in, String idOrRidOrSheetName, RowHandler rowHandler) {
|
||||
@ -158,9 +158,9 @@ public class ExcelUtil {
|
||||
* 获取Excel读取器,通过调用{@link ExcelReader}的read或readXXX方法读取Excel内容
|
||||
*
|
||||
* @param bookFilePath Excel文件路径,绝对路径或相对于ClassPath路径
|
||||
* @param sheetName sheet名,第一个默认是sheet1
|
||||
* @param sheetName sheet名,第一个默认是sheet1
|
||||
* @return {@link ExcelReader}
|
||||
* @since 3.1.1
|
||||
* @since 5.8.0
|
||||
*/
|
||||
public static ExcelReader getReader(String bookFilePath, String sheetName) {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user