public abstract class Downloader extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
destinationDir |
protected String |
errorMessage |
protected String |
sourceURL |
| Constructor and Description |
|---|
Downloader(String destinationDir,
String sourceURL) |
| Modifier and Type | Method and Description |
|---|---|
protected File |
doDownload() |
abstract void |
download() |
String |
getDestinationDir() |
String |
getErrorMessage() |
String |
getSourceURL() |
void |
setErrorMessage(String errorMessage) |
protected void |
setExecutablePermissions(File executable) |
protected String errorMessage
protected String sourceURL
protected String destinationDir
public abstract void download()
throws IOException
IOExceptionpublic String getSourceURL()
public String getDestinationDir()
public String getErrorMessage()
public void setErrorMessage(String errorMessage)
protected File doDownload() throws IOException
IOExceptionprotected void setExecutablePermissions(File executable)
Copyright © 2019 VILT Group. All rights reserved.