netx.jnlp

Class JARDesc


public class JARDesc
extends java.lang.Object

The JAR element.
Version:
$Revision: 1.6 $
Author:
Jon A. Maxwell (JAM) - initial author

Constructor Summary

JARDesc(URL location, Version version, String part, boolean lazy, boolean main, boolean nativeJar)
Create a JAR descriptor.

Method Summary

URL
getLocation()
Returns the URL of the JAR file.
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.

Constructor Details

JARDesc

public JARDesc(URL location,
               Version version,
               String part,
               boolean lazy,
               boolean main,
               boolean nativeJar)
Create a JAR descriptor.
Parameters:
location - the location of the JAR file
version - the required JAR versions, or null
part - the part name, or null
lazy - whether to load the JAR on demand
main - whether the JAR contains the main class

Method Details

getLocation

public URL getLocation()
Returns the URL of the JAR file.

getPart

public String getPart()
Returns the part name, or null if not specified in the JNLP file.

getVersion

public Version getVersion()
Returns the required version of the JAR file.

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.

isNative

public boolean isNative()
Returns true if the JAR file contains native code libraries.