org.archive.wayback.util
Class FileDownloader

java.lang.Object
  extended by org.archive.wayback.util.FileDownloader

public class FileDownloader
extends Object

Version:
$Date: 2010-09-29 05:28:38 +0700 (Wed, 29 Sep 2010) $, $Revision: 3262 $
Author:
brad

Constructor Summary
FileDownloader()
           
 
Method Summary
 void download(URL url, File target)
           
 void downloadGZ(URL url, File target)
           
 String getLastDigest()
           
 void setDigest(boolean digest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileDownloader

public FileDownloader()
Method Detail

getLastDigest

public String getLastDigest()
Returns:
Returns the lastDigest.

setDigest

public void setDigest(boolean digest)
Parameters:
digest - The digest to set.

download

public void download(URL url,
                     File target)
              throws IOException,
                     NoSuchAlgorithmException
Parameters:
url - URL to download
target - local File where uncompressed content of URL is stored
Throws:
IOException
NoSuchAlgorithmException

downloadGZ

public void downloadGZ(URL url,
                       File target)
                throws IOException,
                       NoSuchAlgorithmException
Parameters:
url - URL to download
target - local File where uncompressed content of URL is stored
Throws:
IOException
NoSuchAlgorithmException


Copyright © 2005-2011 Internet Archive. All Rights Reserved.