Skip to main content

Class DownloadOptions

java.lang.Object
com.gpudb.filesystem.download.DownloadOptions

public class DownloadOptions extends Object
This class allows the user of the GPUdbFileHandler class methods for download like - GPUdbFileHandler.download(String, String, DownloadOptions, FileDownloadListener) and GPUdbFileHandler.download(List, String, DownloadOptions, FileDownloadListener) to specify the download options which could be applied to the current download operation. Right now there is only option and that is whether to allow overwriting of files existing in the local directory or not. The static method defaultOptions() can be used to retrieve the default options for download.
  • Constructor Details

    • DownloadOptions

      public DownloadOptions()
      Default constructor
  • Method Details

    • defaultOptions

      public static DownloadOptions defaultOptions()
    • isOverwriteExisting

      public boolean isOverwriteExisting()
    • setOverwriteExisting

      public void setOverwriteExisting(boolean overwriteExisting)