public class FileDownloader extends Object
| Modifier and Type | Method and Description |
|---|---|
File |
attemptToDownload(URL fileLocation)
Attempt to download a file
|
void |
setConnectTimeout(int fileDownloadConnectTimeout) |
void |
setReadTimeout(int fileDownloadReadTimeout) |
public void setReadTimeout(int fileDownloadReadTimeout)
public void setConnectTimeout(int fileDownloadConnectTimeout)
public File attemptToDownload(URL fileLocation) throws URISyntaxException, IOException
fileLocation - URL of the file to downloadURISyntaxException - Invalid URIIOException - Unable to interact with file systemCopyright © 2017. All rights reserved.