public class FtpDownloader
extends java.lang.Object
Constructor and Description |
---|
FtpDownloader(java.lang.String host,
int port) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
downloadDirectory(java.lang.String path,
java.lang.String destPath) |
org.apache.commons.net.ftp.FTPClient |
getClient() |
java.lang.String |
getHost() |
int |
getPort() |
java.util.LinkedHashMap<java.lang.String,org.apache.commons.net.ftp.FTPFile> |
listDirectory(java.lang.String path) |
java.util.LinkedHashMap<org.apache.commons.net.ftp.FTPFile,java.lang.String> |
listLogs() |
static void |
main(java.lang.String[] args) |
void |
renewClient() |
public FtpDownloader(java.lang.String host, int port) throws java.lang.Exception
java.lang.Exception
public void renewClient() throws java.net.SocketException, java.io.IOException
java.net.SocketException
java.io.IOException
public java.lang.String getHost()
public int getPort()
public void downloadDirectory(java.lang.String path, java.lang.String destPath) throws java.lang.Exception
java.lang.Exception
public java.util.LinkedHashMap<java.lang.String,org.apache.commons.net.ftp.FTPFile> listDirectory(java.lang.String path) throws java.lang.Exception
java.lang.Exception
public java.util.LinkedHashMap<org.apache.commons.net.ftp.FTPFile,java.lang.String> listLogs() throws java.io.IOException
java.io.IOException
public org.apache.commons.net.ftp.FTPClient getClient()
public void close() throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
Copyright © 2004-2014 FEUP-LSTS and Neptus developers. All Rights Reserved.