public class FtpUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FtpUtils.CryptMethod |
Modifier and Type | Method and Description |
---|---|
static org.apache.commons.net.ftp.FTPClient |
createClient() |
static org.apache.commons.net.ftp.FTPClient |
createClient(FtpUtils.CryptMethod cryptMethod,
boolean isReusingSslSession) |
static void |
deleteRecursively(org.apache.commons.net.ftp.FTPClient client,
String remotePath) |
static void |
deleteRecursively(org.apache.commons.net.ftp.FTPClient client,
String remotePath,
org.apache.commons.net.ftp.FTPFile file) |
static void |
downloadToFile(org.apache.commons.net.ftp.FTPClient client,
String remotePath,
File targetFile) |
static String |
getWorkingDirectory(org.apache.commons.net.ftp.FTPClient client) |
static org.apache.commons.net.ftp.FTPClient |
openClient(String host,
int port,
boolean passive) |
static org.apache.commons.net.ftp.FTPClient |
openClient(String host,
int port,
boolean passive,
FtpUtils.CryptMethod cryptMethod,
boolean isReusingSslSession) |
static boolean |
storeEmptyFile(org.apache.commons.net.ftp.FTPClient client,
String remotePath) |
public static org.apache.commons.net.ftp.FTPClient createClient() throws IOException
IOException
public static org.apache.commons.net.ftp.FTPClient createClient(FtpUtils.CryptMethod cryptMethod, boolean isReusingSslSession) throws IOException
IOException
public static void downloadToFile(org.apache.commons.net.ftp.FTPClient client, String remotePath, File targetFile) throws IOException
IOException
public static org.apache.commons.net.ftp.FTPClient openClient(String host, int port, boolean passive) throws IOException
IOException
public static org.apache.commons.net.ftp.FTPClient openClient(String host, int port, boolean passive, FtpUtils.CryptMethod cryptMethod, boolean isReusingSslSession) throws IOException
IOException
public static void deleteRecursively(org.apache.commons.net.ftp.FTPClient client, String remotePath) throws IOException
IOException
public static void deleteRecursively(org.apache.commons.net.ftp.FTPClient client, String remotePath, org.apache.commons.net.ftp.FTPFile file) throws IOException
IOException
public static String getWorkingDirectory(org.apache.commons.net.ftp.FTPClient client) throws IOException
IOException
public static boolean storeEmptyFile(org.apache.commons.net.ftp.FTPClient client, String remotePath) throws IOException
IOException
Copyright © 2019 OpenEstate. All rights reserved.