org.archive.wayback.util
Class FileDownloader
java.lang.Object
org.archive.wayback.util.FileDownloader
public class FileDownloader
- extends java.lang.Object
- Version:
- $Date$, $Revision$
- Author:
- brad
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileDownloader
public FileDownloader()
getLastDigest
public java.lang.String getLastDigest()
- Returns:
- Returns the lastDigest.
setDigest
public void setDigest(boolean digest)
- Parameters:
digest - The digest to set.
download
public void download(java.net.URL url,
java.io.File target)
throws java.io.IOException,
java.security.NoSuchAlgorithmException
- Parameters:
url - URL to downloadtarget - local File where uncompressed content of URL is stored
- Throws:
java.io.IOException
java.security.NoSuchAlgorithmException
downloadGZ
public void downloadGZ(java.net.URL url,
java.io.File target)
throws java.io.IOException,
java.security.NoSuchAlgorithmException
- Parameters:
url - URL to downloadtarget - local File where uncompressed content of URL is stored
- Throws:
java.io.IOException
java.security.NoSuchAlgorithmException
Copyright © 2005-2009 Internet Archive. All Rights Reserved.