Enum DownloadStrategy
- All Implemented Interfaces:
Serializable, Comparable<DownloadStrategy>, java.lang.constant.Constable
Used for the download attribute to control whether a resource is downloaded eagerly or lazily.
The value
progress for the download attribute is a hint to the jnlp client that this jar
may contain the class defined by the progress-class attribute (see section 3.7.1).
This jar may be considered eager, and may be loaded first by the jnlp client so that the “progress-class”
found in it may be used to display the progress of the downloading of all other eager resources.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetValue()The attribute value name as used in the JSR-56 specification or theParser.static DownloadStrategyReturns the enum constant of this type with the specified name.static DownloadStrategy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PROGRESS
-
EAGER
-
LAZY
-
-
Field Details
-
value
-
-
Constructor Details
-
DownloadStrategy
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
-