Documentation of 'visad.install.Download' Java class
Download
visad.install

Class Download

  • Direct Known Subclasses:
    TestDownload


    public abstract class Download
    extends java.lang.Object
    Download 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 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.
      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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Download

        public Download()
    • 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 download
        saveFile - the directory or file to which the downloaded file is written
        verbose - 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 download
        saveFile - the directory or file to which the downloaded file is written
        backUpExisting - true if any existing saveFile should be backed up
        verbose - true if a running commentary of the download's progress is desired.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.