All Downloads are FREE. Search and download functionalities are using the official Maven repository.

top.jfunc.common.ftp.one.FtpImpl Maven / Gradle / Ivy

Go to download

http客户端请求工具类,有多种实现:OKHttp3、ApacheHttpClient、HttpURLConnection,可以随意切换http实现

There is a newer version: 1.8.2.0
Show newest version
package top.jfunc.common.ftp.one;

import top.jfunc.common.ftp.ConnectBean;
import top.jfunc.common.ftp.DownloadBean;
import top.jfunc.common.ftp.Ftp;
import top.jfunc.common.ftp.UploadBean;

import java.io.IOException;

/**
 * @author xiongshiyan at 2018/4/8
 */
public class FtpImpl implements Ftp {
    @Override
    public void upload(ConnectBean connectBean, UploadBean uploadBean) throws IOException{
        FtpUtil.upload(connectBean,uploadBean);
    }

    @Override
    public void download(ConnectBean connectBean, DownloadBean downloadBean) throws IOException{
        FtpUtil.download(connectBean,downloadBean);
    }

    @Override
    public void createDir(ConnectBean connectBean, String remotePath) throws IOException {
        FtpUtil.createDir(connectBean,remotePath);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy