Package com.gpudb.filesystem.download
Class DownloadOptions
- java.lang.Object
-
- com.gpudb.filesystem.download.DownloadOptions
-
public class DownloadOptions extends Object
This class allows the user of theGPUdbFileHandlerclass methods for download like -GPUdbFileHandler.download(String, String, DownloadOptions, FileDownloadListener)andGPUdbFileHandler.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 methoddefaultOptions()can be used to retrieve the default options for download.
-
-
Constructor Summary
Constructors Constructor Description DownloadOptions()Default constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DownloadOptionsdefaultOptions()booleanisOverwriteExisting()voidsetOverwriteExisting(boolean overwriteExisting)
-
-
-
Method Detail
-
defaultOptions
public static DownloadOptions defaultOptions()
-
isOverwriteExisting
public boolean isOverwriteExisting()
-
setOverwriteExisting
public void setOverwriteExisting(boolean overwriteExisting)
-
-