netx.jnlp

Class JREDesc


public class JREDesc
extends java.lang.Object

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

Constructor Summary

JREDesc(Version version, URL location, String initialHeapSize, String maximumHeapSize, List resources)
Create a JRE descriptor.

Method Summary

long
getInitialHeapSize()
Returns the initial heap size in bytes.
URL
getLocation()
Returns the JRE version string.
long
getMaximumHeapSize()
Returns the maximum heap size in bytes.
List
getResourcesDesc()
Returns the resources defined for this JRE.
Version
getVersion()
Returns the JRE version.
boolean
isPlatformVersion()
Returns true if the JRE version is a Java platform version (java.specification.version property) or false if it is a product version (java.version property).

Constructor Details

JREDesc

public JREDesc(Version version,
               URL location,
               String initialHeapSize,
               String maximumHeapSize,
               List resources)
Create a JRE descriptor.
Parameters:
version - the platform version or the product version if location is not null
location - the location of a JRE product or null
initialHeapSize - inital heap size
resources - list of ResourceDesc objects

Method Details

getInitialHeapSize

public long getInitialHeapSize()
Returns the initial heap size in bytes.

getLocation

public URL getLocation()
Returns the JRE version string.

getMaximumHeapSize

public long getMaximumHeapSize()
Returns the maximum heap size in bytes.

getResourcesDesc

public List getResourcesDesc()
Returns the resources defined for this JRE.

getVersion

public Version getVersion()
Returns the JRE version. Use isPlatformVersion to determine if this version corresponds to a platform or product version.

isPlatformVersion

public boolean isPlatformVersion()
Returns true if the JRE version is a Java platform version (java.specification.version property) or false if it is a product version (java.version property).