|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.resources.util.DownloadManager
public class DownloadManager
The DownloadManager class provides support to manage the download and installation of artifacts
| Nested Class Summary | |
|---|---|
static class |
DownloadManager.ExtractResults
|
| Constructor Summary | |
|---|---|
DownloadManager(StagedData stagedData)
Create an instance of the DownloadManager |
|
DownloadManager(String installPath,
StagedData stagedData)
Create an instance of the DownloadManager |
|
| Method Summary | |
|---|---|
DownloadRecord |
download()
Performs software download for a Download |
static DownloadManager.ExtractResults |
extract(File directory,
File archive)
Extract an archive |
static void |
main(String[] args)
|
DownloadRecord |
postInstall()
Perform post-install task(s) as described by the StagedSoftware object |
void |
remove()
Remove installed software |
static String |
remove(DownloadRecord record)
Remove installed software |
void |
setShowDownloadTo(boolean show)
Whether to emit logger statements documenting where the data is being downloaded to |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DownloadManager(StagedData stagedData)
stagedData - The Download
public DownloadManager(String installPath,
StagedData stagedData)
installPath - The root directory to download the software. If the
directory does not exist, it will be created. Read and write access
permissions are required to the directorystagedData - The Download| Method Detail |
|---|
public DownloadRecord download()
throws IOException
IOException - if there are errors accessing the file systempublic void setShowDownloadTo(boolean show)
show - If true emit (default)
public static DownloadManager.ExtractResults extract(File directory,
File archive)
throws IOException
directory - the directory to extract toarchive - The archive to extract
IOException - if there are errors extracting the archive
public DownloadRecord postInstall()
throws IOException
IOException - if there are errors accessing the file systempublic void remove()
public static String remove(DownloadRecord record)
record - The DownloadRecord to remove
public static void main(String[] args)
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||