public class FileDownloader extends Object
| Constructor and Description | 
|---|
FileDownloader()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
download(URL url,
        File target)  | 
void | 
downloadGZ(URL url,
          File target)  | 
String | 
getLastDigest()  | 
void | 
setDigest(boolean digest)  | 
public String getLastDigest()
public void setDigest(boolean digest)
digest - The digest to set.public void download(URL url, File target) throws IOException, NoSuchAlgorithmException
url - URL to downloadtarget - local File where uncompressed content of URL is storedIOExceptionNoSuchAlgorithmExceptionpublic void downloadGZ(URL url, File target) throws IOException, NoSuchAlgorithmException
url - URL to downloadtarget - local File where uncompressed content of URL is storedIOExceptionNoSuchAlgorithmExceptionCopyright © 2005–2015 IIPC. All rights reserved.