Top Fields Constructors Methods
com.jogamp.common.util

public Class VersionUtil

extends Object
Class Inheritance
Imports
com.jogamp.common.os.AndroidVersion, .Platform, java.io.IOException, .InputStream, java.net.URL, java.util.Enumeration, .Iterator, .Set, java.util.jar.Attributes, .Manifest, jogamp.common.os.PlatformPropsImpl

Field Summary

Modifier and TypeField and Description
public static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static StringBuilder
public static Manifest

Returns:

the requested manifest or null when not found.
getManifest
(final ClassLoader
A ClassLoader which should find the manifest.
cl
,
final String
The value of the 'Extension-Name' jar-manifest attribute; used to identify the manifest.
extension
)

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

public static Manifest

Returns:

the requested manifest or null when not found.
getManifest
(final ClassLoader
A ClassLoader which should find the manifest.
cl
,
final String[]
The 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.
extensions
)

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

public static StringBuilder
getPlatformInfo(StringBuilder sb)

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

public static String
getPlatformInfo()

Prints platform info.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

SEPERATORback to summary
public static final String SEPERATOR

Constructor Detail

VersionUtilback to summary
public VersionUtil()

Method Detail

getFullManifestInfoback to summary
public static StringBuilder getFullManifestInfo(final Manifest mf, StringBuilder sb)
getManifestback to summary
public static Manifest getManifest(final ClassLoader cl, final String extension)

Returns the manifest of the jar which contains the specified extension. The provided ClassLoader is used for resource loading.

Parameters
cl:ClassLoader

A ClassLoader which should find the manifest.

extension:String

The value of the 'Extension-Name' jar-manifest attribute; used to identify the manifest.

Returns:Manifest

the requested manifest or null when not found.

getManifestback to summary
public static Manifest getManifest(final ClassLoader cl, final String[] extensions)

Returns the manifest of the jar which contains one of the specified extensions. The provided ClassLoader is used for resource loading.

Parameters
cl:ClassLoader

A ClassLoader which should find the manifest.

extensions:String[]

The 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:Manifest

the requested manifest or null when not found.

getPlatformInfoback to summary
public static StringBuilder getPlatformInfo(StringBuilder sb)

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

getPlatformInfoback to summary
public static String getPlatformInfo()

Prints platform info.

See Also
getPlatformInfo(java.lang.StringBuilder)