| Package | Description |
|---|---|
| cn.hutool.extra.ftp |
基于Apache Commons Net封装的FTP工具
|
| Modifier and Type | Method and Description |
|---|---|
static FtpMode |
FtpMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FtpMode[] |
FtpMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
Ftp |
Ftp.init(FtpConfig config,
FtpMode mode)
初始化连接
|
Ftp |
Ftp.init(String host,
int port,
String user,
String password,
FtpMode mode)
初始化连接
|
Ftp |
Ftp.setMode(FtpMode mode)
设置FTP连接模式,可选主动和被动模式
|
| Constructor and Description |
|---|
Ftp(FtpConfig config,
FtpMode mode)
构造
|
Ftp(String host,
int port,
String user,
String password,
Charset charset,
String serverLanguageCode,
String systemKey,
FtpMode mode)
构造
|
Copyright © 2025. All rights reserved.