This commit is contained in:
Looly
2023-06-08 17:15:24 +08:00
parent 96dbdde1e5
commit 3dda0227b8
2 changed files with 15 additions and 10 deletions

View File

@@ -23,6 +23,11 @@ import java.nio.charset.Charset;
public class FtpConfig implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 创建默认配置
*
* @return FtpConfig
*/
public static FtpConfig of() {
return new FtpConfig();
}
@@ -77,11 +82,11 @@ public class FtpConfig implements Serializable {
/**
* 构造
*
* @param host 主机
* @param port 端口
* @param user 用户名
* @param password 密码
* @param charset 编码
* @param host 主机
* @param port 端口
* @param user 用户名
* @param password 密码
* @param charset 编码
*/
public FtpConfig(final String host, final int port, final String user, final String password, final Charset charset) {
this(host, port, user, password, charset, null, null);