Package net.sourceforge.jnlp
Class JARDesc
java.lang.Object
net.sourceforge.jnlp.JARDesc
The JAR element.
This class is immutable and thread safe
-
Constructor Details
-
JARDesc
public JARDesc(URL location, Version version, String part, boolean lazy, boolean main, boolean nativeJar, boolean cacheable) Create a JAR descriptor.- Parameters:
location
- the location of the JAR fileversion
- the required JAR versions, or nullpart
- the part name, or nulllazy
- whether to load the JAR on demandmain
- whether the JAR contains the main classnativeJar
- whether the JAR contains native librariescacheable
- whether the JAR can be cached or not
-
-
Method Details
-
getLocation
- Returns:
- the URL of the JAR file.
-
getVersion
- Returns:
- the required version of the JAR file.
-
getPart
- Returns:
- the part name, or null if not specified in the JNLP file.
-
isNative
public boolean isNative()- Returns:
- true if the JAR file contains native code libraries.
-
isEager
public boolean isEager()- Returns:
- true if the JAR file should be downloaded before starting the application.
-
isLazy
public boolean isLazy()- Returns:
- true if the JAR file should be downloaded on demand.
-
isMain
public boolean isMain()- Returns:
- true if the JNLP file defined this JAR as containing the main class. If no JARs were defined as the main JAR then the first JAR should be used to locate the main class.
- See Also:
-
isCacheable
public boolean isCacheable()Returns if this jar is cacheable- Returns:
- Whether or not this jar is cacheable
-