Class FtpDownloader
java.lang.Object
org.esa.snap.core.dataop.downloadable.FtpDownloader
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionFtpDownloader(String server) FtpDownloader(String server, String user, String password) -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic longgetFileSize(org.apache.commons.net.ftp.FTPFile[] fileList, String remoteFileName) readRemoteFileList(FtpDownloader ftp, String server, String remotePath) readRemoteFileListNoCache(String remotePath) retrieveFile(String remotePath, File localFile, Long fileSize) static boolean
-
Constructor Details
-
FtpDownloader
- Throws:
IOException
-
FtpDownloader
- Throws:
IOException
-
-
Method Details
-
disconnect
- Throws:
IOException
-
retrieveFile
public FtpDownloader.FTPError retrieveFile(String remotePath, File localFile, Long fileSize) throws Exception - Throws:
Exception
-
getFileSize
public static long getFileSize(org.apache.commons.net.ftp.FTPFile[] fileList, String remoteFileName) -
readRemoteFileListNoCache
-
readRemoteFileList
-
testFTP
- Throws:
IOException
-