net.sourceforge.jnlp
public class JARDesc extends java.lang.Object
Constructor and Description |
---|
JARDesc(java.net.URL location,
Version version,
java.lang.String part,
boolean lazy,
boolean main,
boolean nativeJar,
boolean cacheable)
Create a JAR descriptor.
|
Modifier and Type | Method and Description |
---|---|
java.net.URL |
getLocation()
Returns the URL of the JAR file.
|
java.lang.String |
getPart()
Returns the part name, or null if not specified in the JNLP
file.
|
Version |
getVersion()
Returns the required version of the JAR file.
|
boolean |
isCacheable()
Returns if this jar is cacheable
|
boolean |
isEager()
Returns true if the JAR file should be downloaded before
starting the application.
|
boolean |
isLazy()
Returns true if the JAR file should be downloaded on demand.
|
boolean |
isMain()
Returns true if the JNLP file defined this JAR as containing
the main class.
|
boolean |
isNative()
Returns true if the JAR file contains native code
libraries.
|
public JARDesc(java.net.URL location, Version version, java.lang.String part, boolean lazy, boolean main, boolean nativeJar, boolean cacheable)
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 notpublic java.net.URL getLocation()
public Version getVersion()
public java.lang.String getPart()
public boolean isNative()
public boolean isEager()
public boolean isLazy()
public boolean isMain()
ResourcesDesc.getMainJAR()
public boolean isCacheable()