public class FileDownloader extends Object
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
FileDownloader() |
Modifier and Type | Method and Description |
---|---|
File |
download(URL url,
File file) |
void |
setBackoffTime(int backoffTime) |
void |
setDisplayInfo(int displayInfo) |
void |
setMaxAttempts(int maxAttempts) |
void |
setSleepTime(int sleepTime) |
public File download(URL url, File file) throws InterruptedException
InterruptedException
public void setSleepTime(int sleepTime)
public void setMaxAttempts(int maxAttempts)
public void setDisplayInfo(int displayInfo)
public void setBackoffTime(int backoffTime)
Copyright © 2016. All rights reserved.