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 path) |
static void |
deleteRecursively(org.apache.commons.net.ftp.FTPClient client,
String path,
org.apache.commons.net.ftp.FTPFile file) |
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) |
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 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 path)
throws IOException
IOExceptionpublic static void deleteRecursively(org.apache.commons.net.ftp.FTPClient client,
String path,
org.apache.commons.net.ftp.FTPFile file)
throws IOException
IOExceptionCopyright © 2015 OpenEstate. All rights reserved.