public class FileDownloader extends Object
Constructor and Description |
---|
FileDownloader() |
Modifier and Type | Method and Description |
---|---|
void |
downloadFileFromURL(String url,
String filePathName,
int readTimeoutInSeconds)
Download a file from a URL
|
public void downloadFileFromURL(String url, String filePathName, int readTimeoutInSeconds) throws MalformedURLException, IOException
url
- the url of the filefilePathName
- the fullpath of the output downloaded file, containing also file name and extensionreadTimeoutInSeconds
- URL read timeout in seconds, 0 or negative mean no limitMalformedURLException
- MalformedURLExceptionIOException
- IOExceptionCopyright © 2016. All rights reserved.