public final class PropertyHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SDK_VERSION_FILE_NAME |
static java.lang.String |
UNKNOWN_VERSION_VALUE |
static java.lang.String |
VERSION_PROPERTY_NAME |
static java.lang.String |
VERSION_STRING_PREFIX |
Modifier and Type | Method and Description |
---|---|
static java.util.Properties |
getProperties(java.lang.String name)
Reads the properties from a properties file.
|
static java.lang.String |
getQualifiedSdkVersionString()
Returns the SDK version string, the version-number prefixed with "java:".
|
static java.lang.String |
getSdkVersionNumber() |
static java.util.Properties |
getSdkVersionProperties()
Deprecated.
Use
getQualifiedSdkVersionString() to get the cached sdk version value. |
static java.util.Properties |
getStarterVersionProperties()
Deprecated.
Use
getStarterVersionString() to get the cached starter version value. |
static java.lang.String |
getStarterVersionString()
Returns the starter version string, the version-number prefixed with "java:".
|
public static final java.lang.String SDK_VERSION_FILE_NAME
public static final java.lang.String VERSION_STRING_PREFIX
public static final java.lang.String VERSION_PROPERTY_NAME
public static final java.lang.String UNKNOWN_VERSION_VALUE
public static java.util.Properties getProperties(java.lang.String name) throws java.io.IOException
name
- of the properties file.Properties
object containing the properties read from the provided file.java.io.IOException
- in case@Deprecated public static java.util.Properties getSdkVersionProperties()
getQualifiedSdkVersionString()
to get the cached sdk version value.@Deprecated public static java.util.Properties getStarterVersionProperties()
getStarterVersionString()
to get the cached starter version value.public static java.lang.String getQualifiedSdkVersionString()
public static java.lang.String getSdkVersionNumber()
public static java.lang.String getStarterVersionString()