Class FtpUtils
- java.lang.Object
-
- com.openindex.openestate.tool.utils.FtpUtils
-
public class FtpUtils extends Object
FtpUtils.- Author:
- Andreas Rudolph
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFtpUtils.CryptMethod
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.commons.net.ftp.FTPClientcreateClient()static org.apache.commons.net.ftp.FTPClientcreateClient(FtpUtils.CryptMethod cryptMethod, boolean isReusingSslSession)static voiddeleteRecursively(org.apache.commons.net.ftp.FTPClient client, String remotePath)static voiddeleteRecursively(org.apache.commons.net.ftp.FTPClient client, String remotePath, org.apache.commons.net.ftp.FTPFile file)static voiddownloadToFile(org.apache.commons.net.ftp.FTPClient client, String remotePath, File targetFile)static StringgetWorkingDirectory(org.apache.commons.net.ftp.FTPClient client)static org.apache.commons.net.ftp.FTPClientopenClient(String host, int port, boolean passive)static org.apache.commons.net.ftp.FTPClientopenClient(String host, int port, boolean passive, FtpUtils.CryptMethod cryptMethod, boolean isReusingSslSession)static booleanstoreEmptyFile(org.apache.commons.net.ftp.FTPClient client, String remotePath)
-
-
-
Method Detail
-
createClient
public static org.apache.commons.net.ftp.FTPClient createClient() throws IOException- Throws:
IOException
-
createClient
public static org.apache.commons.net.ftp.FTPClient createClient(FtpUtils.CryptMethod cryptMethod, boolean isReusingSslSession) throws IOException
- Throws:
IOException
-
downloadToFile
public static void downloadToFile(org.apache.commons.net.ftp.FTPClient client, String remotePath, File targetFile) throws IOException- Throws:
IOException
-
openClient
public static org.apache.commons.net.ftp.FTPClient openClient(String host, int port, boolean passive) throws IOException
- Throws:
IOException
-
openClient
public static org.apache.commons.net.ftp.FTPClient openClient(String host, int port, boolean passive, FtpUtils.CryptMethod cryptMethod, boolean isReusingSslSession) throws IOException
- Throws:
IOException
-
deleteRecursively
public static void deleteRecursively(org.apache.commons.net.ftp.FTPClient client, String remotePath) throws IOException- Throws:
IOException
-
deleteRecursively
public static void deleteRecursively(org.apache.commons.net.ftp.FTPClient client, String remotePath, org.apache.commons.net.ftp.FTPFile file) throws IOException- Throws:
IOException
-
getWorkingDirectory
public static String getWorkingDirectory(org.apache.commons.net.ftp.FTPClient client) throws IOException
- Throws:
IOException
-
storeEmptyFile
public static boolean storeEmptyFile(org.apache.commons.net.ftp.FTPClient client, String remotePath) throws IOException- Throws:
IOException
-
-