public class VersionFromManifestReader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BUILD_TIMESTAMP |
static java.lang.String |
IMPLEMENTATION_VERSION |
Constructor and Description |
---|
VersionFromManifestReader() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBuildTimestamp()
return build timestamp from manifest, as identified by the "Build-Timestamp" attribute
|
int |
getMaintVersion()
Retrieve the maintenance version identified in the library manifest.
|
int |
getMajorVersion()
Retrieve major version identified in the libray manifest.
|
int |
getMinorVersion()
Retrieve minor version identified in the library manifest.
|
java.lang.String |
getRawVersion()
Return the library version from the manifest, as identified by the "Implementation-Version" attibute
|
boolean |
loadVersionFromManifest(java.lang.String bundleName)
attempts to locate the manifest that contains the correct bundle information,
and parses the implementation version information from the manifest.
|
boolean |
loadVersionFromStream(java.lang.String bundleName,
java.io.InputStream in)
tries to load the value of "Implementation-Version" from the stream which is assumed
to be a manifest file.
|
public static final java.lang.String IMPLEMENTATION_VERSION
public static final java.lang.String BUILD_TIMESTAMP
public boolean loadVersionFromManifest(java.lang.String bundleName) throws java.io.IOException
java.io.IOException
public boolean loadVersionFromStream(java.lang.String bundleName, java.io.InputStream in) throws java.io.IOException
in
- java.io.IOException
public int getMajorVersion()
public int getMinorVersion()
public int getMaintVersion()
public java.lang.String getRawVersion()
public java.lang.String getBuildTimestamp()