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
IOExceptionpublic static org.apache.commons.net.ftp.FTPClient createClient(FtpUtils.CryptMethod cryptMethod, boolean isReusingSslSession) throws IOException
IOExceptionpublic static void downloadToFile(org.apache.commons.net.ftp.FTPClient client,
String remotePath,
File targetFile)
throws IOException
IOExceptionpublic static org.apache.commons.net.ftp.FTPClient openClient(String host, int port, boolean passive) throws IOException
IOExceptionpublic static org.apache.commons.net.ftp.FTPClient openClient(String host, int port, boolean passive, FtpUtils.CryptMethod cryptMethod, boolean isReusingSslSession) throws IOException
IOExceptionpublic static void deleteRecursively(org.apache.commons.net.ftp.FTPClient client,
String remotePath)
throws IOException
IOExceptionpublic static void deleteRecursively(org.apache.commons.net.ftp.FTPClient client,
String remotePath,
org.apache.commons.net.ftp.FTPFile file)
throws IOException
IOExceptionpublic static String getWorkingDirectory(org.apache.commons.net.ftp.FTPClient client) throws IOException
IOExceptionpublic static boolean storeEmptyFile(org.apache.commons.net.ftp.FTPClient client,
String remotePath)
throws IOException
IOExceptionCopyright © 2019 OpenEstate. All rights reserved.