Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.statcato.file
Class DownloadFile

    java.lang.Object
      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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD