public class DownloadOptions extends Object
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 and Description |
---|
DownloadOptions()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
static DownloadOptions |
defaultOptions() |
boolean |
isOverwriteExisting() |
void |
setOverwriteExisting(boolean overwriteExisting) |
public static DownloadOptions defaultOptions()
public boolean isOverwriteExisting()
public void setOverwriteExisting(boolean overwriteExisting)
Copyright © 2024. All rights reserved.