|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.libmanagement.Downloader
public class Downloader
| Constructor Summary | |
|---|---|
Downloader()
Default constructor. |
|
| Method Summary | |
|---|---|
boolean |
checkFilesPresent(File folder,
String... names)
Check that the specified files are present in the specified path. |
void |
extractFiles(String sourceUrl,
String destPath,
String... names)
Extract the specified files from the specified archive. |
LocationEventListener |
getListener()
Get the location listener used to show the progress of the download. |
static void |
main(String... args)
Entry point. |
void |
setListener(LocationEventListener listener)
Set the location listener used to show the progress of the download. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Downloader()
| Method Detail |
|---|
public static void main(String... args)
args - - not used.
public void extractFiles(String sourceUrl,
String destPath,
String... names)
throws Exception
sourceUrl - - the URL pointing to the archive to download.destPath - - the oflder in which to extract the files.names - - the names of the zip entries to extract.
Exception - if any IO error occurs.
public boolean checkFilesPresent(File folder,
String... names)
folder - - the folder in which to check for the files.names - - the names of the files to lookup.
public LocationEventListener getListener()
LocationEventListener instance.public void setListener(LocationEventListener listener)
listener - - a LocationEventListener instance.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||