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
Exception
URISyntaxException
IOException
Copyright © 2015. All Rights Reserved.