GlueGen v2.6.0
GlueGen, Native Binding Generator for Java™ (public API).
com.jogamp.common.util.VersionUtil Class Reference
Collaboration diagram for com.jogamp.common.util.VersionUtil:

Static Public Member Functions

static StringBuilder getPlatformInfo (StringBuilder sb)
 Appends environment information like OS, JVM and CPU architecture properties to the StringBuilder. More...
 
static String getPlatformInfo ()
 Prints platform info. More...
 
static String getExtensionName (final Manifest mf)
 Returns the manifest's Attributes.Name.EXTENSION_NAME, i.e. More...
 
static String getExtensionName (final Attributes attributes)
 Returns the attributes' Attributes.Name.EXTENSION_NAME, i.e. More...
 
static Manifest getManifest (final ClassLoader cl, final String extension)
 Returns the manifest of the jar which contains the specified extension. More...
 
static Manifest getManifest (final ClassLoader cl, final String[] extensions)
 Returns the manifest of the jar which contains one of the specified extensions. More...
 
static Manifest getManifest (final ClassLoader cl, final String[] extensions, final boolean acceptFirst)
 Returns the manifest of the jar which contains one of the specified extensions. More...
 
static StringBuilder getFullManifestInfo (final Manifest mf, StringBuilder sb)
 

Static Public Attributes

static final String SEPERATOR = "-----------------------------------------------------------------------------------------------------"
 

Detailed Description

Definition at line 49 of file VersionUtil.java.

Member Function Documentation

◆ getExtensionName() [1/2]

static String com.jogamp.common.util.VersionUtil.getExtensionName ( final Attributes  attributes)
static

Returns the attributes' Attributes.Name.EXTENSION_NAME, i.e.

package-name.

Definition at line 112 of file VersionUtil.java.

◆ getExtensionName() [2/2]

static String com.jogamp.common.util.VersionUtil.getExtensionName ( final Manifest  mf)
static

Returns the manifest's Attributes.Name.EXTENSION_NAME, i.e.

package-name.

Definition at line 108 of file VersionUtil.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFullManifestInfo()

static StringBuilder com.jogamp.common.util.VersionUtil.getFullManifestInfo ( final Manifest  mf,
StringBuilder  sb 
)
static

Definition at line 224 of file VersionUtil.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getManifest() [1/3]

static Manifest com.jogamp.common.util.VersionUtil.getManifest ( final ClassLoader  cl,
final String  extension 
)
static

Returns the manifest of the jar which contains the specified extension.

The provided ClassLoader is used for resource loading, while excluding its parent-classloader resources.

Parameters
clClassLoader used to locate the manifest.
extensionThe value of the 'Extension-Name' jar-manifest attribute; used to identify the manifest.
Returns
the requested manifest, or null if not matching or none found.

Definition at line 126 of file VersionUtil.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getManifest() [2/3]

static Manifest com.jogamp.common.util.VersionUtil.getManifest ( final ClassLoader  cl,
final String[]  extensions 
)
static

Returns the manifest of the jar which contains one of the specified extensions.

The provided ClassLoader is used for resource loading, while excluding its parent-classloader resources.

Parameters
clClassLoader used to locate the manifest.
extensionsThe values of many 'Extension-Name's jar-manifest attribute; used to identify the manifest. Matching is applied in decreasing order, i.e. first element is favored over the second, etc.
Returns
the requested manifest, or null if not matching or none found.

Definition at line 138 of file VersionUtil.java.

Here is the call graph for this function:

◆ getManifest() [3/3]

static Manifest com.jogamp.common.util.VersionUtil.getManifest ( final ClassLoader  cl,
final String[]  extensions,
final boolean  acceptFirst 
)
static

Returns the manifest of the jar which contains one of the specified extensions.

The provided ClassLoader is used for resource loading, while excluding its parent-classloader resources.

Parameters
clClassLoader used to locate the manifest.
extensionsThe values of many 'Extension-Name's jar-manifest attribute; used to identify the manifest. Matching is applied in decreasing order, i.e. first element is favored over the second, etc.
acceptFirstpass true to accept the first Manifest w/ an extension-name if non matching extension is found
Returns
the requested manifest, otherwise the first found manifest w/ an extension-name or null when no manifest found.

Definition at line 151 of file VersionUtil.java.

Here is the call graph for this function:

◆ getPlatformInfo() [1/2]

static String com.jogamp.common.util.VersionUtil.getPlatformInfo ( )
static

Prints platform info.

See also
getPlatformInfo(java.lang.StringBuilder)

Definition at line 103 of file VersionUtil.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPlatformInfo() [2/2]

static StringBuilder com.jogamp.common.util.VersionUtil.getPlatformInfo ( StringBuilder  sb)
static

Appends environment information like OS, JVM and CPU architecture properties to the StringBuilder.

Definition at line 57 of file VersionUtil.java.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ SEPERATOR

final String com.jogamp.common.util.VersionUtil.SEPERATOR = "-----------------------------------------------------------------------------------------------------"
static

Definition at line 52 of file VersionUtil.java.


The documentation for this class was generated from the following file: