org.archive.wayback.util
Class FileDownloader

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

public class FileDownloader
extends java.lang.Object

Version:
$Date$, $Revision$
Author:
brad

Constructor Summary
FileDownloader()
           
 
Method Summary
 void download(java.net.URL url, java.io.File target)
           
 void downloadGZ(java.net.URL url, java.io.File target)
           
 java.lang.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 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 download
target - 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 download
target - local File where uncompressed content of URL is stored
Throws:
java.io.IOException
java.security.NoSuchAlgorithmException


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