mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add TlsSocketStrategyBuilder
This commit is contained in:
@@ -16,11 +16,11 @@
|
||||
|
||||
package org.dromara.hutool.poi.csv;
|
||||
|
||||
import org.dromara.hutool.core.io.file.FileUtil;
|
||||
import org.dromara.hutool.core.func.SerConsumer;
|
||||
import org.dromara.hutool.core.io.IORuntimeException;
|
||||
import org.dromara.hutool.core.io.IoUtil;
|
||||
import org.dromara.hutool.core.io.file.PathUtil;
|
||||
import org.dromara.hutool.core.lang.Assert;
|
||||
import org.dromara.hutool.core.func.SerConsumer;
|
||||
import org.dromara.hutool.core.util.CharsetUtil;
|
||||
import org.dromara.hutool.core.util.ObjUtil;
|
||||
|
||||
@@ -180,7 +180,7 @@ public class CsvBaseReader implements Serializable {
|
||||
*/
|
||||
public CsvData read(final Path path, final Charset charset) throws IORuntimeException {
|
||||
Assert.notNull(path, "path must not be null");
|
||||
return read(FileUtil.getReader(path, charset), true);
|
||||
return read(PathUtil.getReader(path, charset), true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -20,6 +20,7 @@ import org.dromara.hutool.core.io.IORuntimeException;
|
||||
import org.dromara.hutool.core.io.IoUtil;
|
||||
import org.dromara.hutool.core.io.file.FileUtil;
|
||||
import org.dromara.hutool.core.func.SerConsumer;
|
||||
import org.dromara.hutool.core.io.file.PathUtil;
|
||||
|
||||
import java.io.Closeable;
|
||||
import java.io.File;
|
||||
@@ -102,7 +103,7 @@ public class CsvReader extends CsvBaseReader implements Iterable<CsvRow>, Closea
|
||||
* @since 5.0.4
|
||||
*/
|
||||
public CsvReader(final Path path, final Charset charset, final CsvReadConfig config) {
|
||||
this(FileUtil.getReader(path, charset), config);
|
||||
this(PathUtil.getReader(path, charset), config);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user