public class FTPDownloader extends Object
| Constructor and Description |
|---|
FTPDownloader(String url) |
FTPDownloader(String host,
String user,
String pwd) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkFileExists(String remoteFilePath) |
static boolean |
checkFtpFileExists(String ftpURL) |
void |
disconnect() |
void |
downloadFile(String remoteFilePath,
String localFilePath) |
List<String> |
listFiles(String directory) |
public void downloadFile(String remoteFilePath, String localFilePath)
remoteFilePath - can be either full URL or relative to the rootlocalFilePath - public boolean checkFileExists(String remoteFilePath) throws IOException
IOExceptionpublic void disconnect()
public static boolean checkFtpFileExists(String ftpURL)
Copyright © 2017. All Rights Reserved.