public class FileDownloader extends Object
| Constructor and Description |
|---|
FileDownloader() |
| Modifier and Type | Method and Description |
|---|---|
FileDownloader |
decompress(String rarFile,
String destFold)
This method is responsible for decompressing a file (in tar.gz format) in a specific
location in the filesystem.
|
FileDownloader |
download(String getFrom,
String storeTo)
This method is responsible for downloading a file from one location to a local one.
|
static void |
main(String[] args) |
public FileDownloader download(String getFrom, String storeTo)
getFrom - the url where the file should be downloaded fromstoreTo - the path where the file should be downlowdedpublic FileDownloader decompress(String rarFile, String destFold)
rarFile - the compressed filedestFold - the path where the contents of the compressed file should be decompressedpublic static void main(String[] args)
Copyright © 2018. All Rights Reserved.