public enum DownloadParamType extends java.lang.Enum<DownloadParamType>
Main
)Enum Constant and Description |
---|
bounds
geographic area
|
fileName
local file name
|
fileUrl
file:// URL
|
httpUrl
http(s):// URL
|
Modifier and Type | Method and Description |
---|---|
abstract java.util.List<java.util.concurrent.Future<?>> |
download(java.lang.String param,
java.util.Collection<java.io.File> fileList)
Performs the download
|
java.util.List<java.util.concurrent.Future<?>> |
downloadGps(java.lang.String param)
Performs the GPS download
|
static DownloadParamType |
paramType(java.lang.String s)
Guess the type of a parameter string specified on the command line with --download= or --downloadgps.
|
static DownloadParamType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DownloadParamType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DownloadParamType httpUrl
public static final DownloadParamType fileUrl
public static final DownloadParamType bounds
public static final DownloadParamType fileName
public static DownloadParamType[] values()
for (DownloadParamType c : DownloadParamType.values()) System.out.println(c);
public static DownloadParamType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract java.util.List<java.util.concurrent.Future<?>> download(java.lang.String param, java.util.Collection<java.io.File> fileList)
param
- represents the object to be downloadedfileList
- files which shall be opened, should be added to this collectionnull
public java.util.List<java.util.concurrent.Future<?>> downloadGps(java.lang.String param)
param
- represents the object to be downloadednull
public static DownloadParamType paramType(java.lang.String s)
s
- A parameter string