org.statcato.file
Class DownloadFile

java.lang.Object
  extended by org.statcato.file.DownloadFile

public class DownloadFile
extends java.lang.Object

A class for downloading a file from a given URL to a file in a specified directory.

Since:
1.0
Version:
%I%, %G%
Author:
Margaret Yau

Constructor Summary
DownloadFile(java.lang.String URL)
           
 
Method Summary
 java.lang.String download()
          Downloads file specified by the URL to a temporary file in saveDir.
 int download(java.lang.String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DownloadFile

public DownloadFile(java.lang.String URL)
Method Detail

download

public int download(java.lang.String fileName)

download

public java.lang.String download()
Downloads file specified by the URL to a temporary file in saveDir.

Returns:
string name of the download file in saveDir