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 temporary file in a specified directory.

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

Constructor Summary
`DownloadFile(java.lang.String URL, java.lang.String saveDir)`

Method Summary
`java.lang.String` | `download()` Downloads file specified by the URL to a temporary file in saveDir.

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,
                        java.lang.String saveDir)

Method Detail

### 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