mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -93,7 +93,7 @@ public class ExcelUtil {
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public static void readBySax(InputStream in, final int rid, final RowHandler rowHandler) {
|
||||
in = IoUtil.toMarkSupportStream(in);
|
||||
in = IoUtil.toMarkSupport(in);
|
||||
final ExcelSaxReader<?> reader = ExcelSaxUtil.createSaxReader(ExcelFileUtil.isXlsx(in), rowHandler);
|
||||
reader.read(in, rid);
|
||||
}
|
||||
@@ -107,7 +107,7 @@ public class ExcelUtil {
|
||||
* @since 5.4.4
|
||||
*/
|
||||
public static void readBySax(InputStream in, final String idOrRidOrSheetName, final RowHandler rowHandler) {
|
||||
in = IoUtil.toMarkSupportStream(in);
|
||||
in = IoUtil.toMarkSupport(in);
|
||||
final ExcelSaxReader<?> reader = ExcelSaxUtil.createSaxReader(ExcelFileUtil.isXlsx(in), rowHandler);
|
||||
reader.read(in, idOrRidOrSheetName);
|
||||
}
|
||||
|
@@ -143,7 +143,7 @@ public class WorkbookUtil {
|
||||
*/
|
||||
public static Workbook createBook(final InputStream in, final String password) {
|
||||
try {
|
||||
return WorkbookFactory.create(IoUtil.toMarkSupportStream(in), password);
|
||||
return WorkbookFactory.create(IoUtil.toMarkSupport(in), password);
|
||||
} catch (final Exception e) {
|
||||
throw new POIException(e);
|
||||
} finally {
|
||||
|
Reference in New Issue
Block a user