netx.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)
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 |
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)
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 classnativeJam
- whether the JAR contains native librariespublic 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()