public class FileDownloader extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CONNECTION_TIMEOUT |
static int |
READ_TIMEOUT |
| Constructor and Description |
|---|
FileDownloader(String url)
Instantiates a new File downloader.
|
FileDownloader(String url,
String proxyHost,
int proxyPort)
Instantiates a new File downloader.
|
public static final int CONNECTION_TIMEOUT
public static final int READ_TIMEOUT
public FileDownloader(String url)
url - the urlpublic void setUrl(String url)
public String download(String downloadDir) throws IOException
downloadDir - the pathIOException - the iO exceptionpublic String download(String downloadDir, String downloadFilename) throws IOException
IOExceptionCopyright © 2018. All rights reserved.