visad.install
Class Download
- java.lang.Object
-
- visad.install.Download
-
- Direct Known Subclasses:
- TestDownload
public abstract class Download extends java.lang.ObjectDownload a file from a URL to a local directory.
-
-
Constructor Summary
Constructors Constructor and Description Download()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidgetFile(java.net.URL url, java.io.File saveFile, boolean verbose)Save the file found at the URL to the specified directory.
If saveFile exists and is a file, it is overwritten.static voidgetFile(java.net.URL url, java.io.File saveFile, boolean backUpExisting, boolean verbose)Save the file found at the URL to the specified directory.
-
-
-
Method Detail
-
getFile
public static void getFile(java.net.URL url, java.io.File saveFile, boolean verbose)Save the file found at the URL to the specified directory.
If saveFile exists and is a file, it is overwritten.- Parameters:
url- the file to downloadsaveFile- the directory or file to which the downloaded file is writtenverbose- true if a running commentary of the download's progress is desired.
-
getFile
public static void getFile(java.net.URL url, java.io.File saveFile, boolean backUpExisting, boolean verbose)Save the file found at the URL to the specified directory.- Parameters:
url- the file to downloadsaveFile- the directory or file to which the downloaded file is writtenbackUpExisting- true if any existing saveFile should be backed upverbose- true if a running commentary of the download's progress is desired.
-
-
DMelt 3.0 © DataMelt by jWork.ORG