@Component public class FtpUtilComponent extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private FtpProperties |
ftpProperties |
private static String |
LOCAL_CHARSET |
private static String |
ZN_CHARSET |
| 构造器和说明 |
|---|
FtpUtilComponent() |
| 限定符和类型 | 方法和说明 |
|---|---|
private boolean |
connectServer(org.apache.commons.net.ftp.FTPClient ftpClient) |
boolean |
uploadFile(String remotePath,
List<File> fileList) |
boolean |
uploadToFtp(String remotePath,
String fileName,
File file) |
private FtpProperties ftpProperties
private static String ZN_CHARSET
private static String LOCAL_CHARSET
private boolean connectServer(org.apache.commons.net.ftp.FTPClient ftpClient)
public boolean uploadFile(String remotePath, List<File> fileList) throws IOException
IOExceptionpublic boolean uploadToFtp(String remotePath, String fileName, File file) throws IOException
IOExceptionCopyright © 2023. All rights reserved.