Class Overview
A utility class for retreiving the various parts of a Java version
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Constants
public
static
final
String
JAVA_VERSION_5
public
static
final
String
JAVA_VERSION_6
Public Constructors
Public Methods
public
int
getBuildNumber
(String javaVersion)
Parameters
javaVersion
| the full Java version string |
Returns
- the build number of the Java string, e.g. "1.6.0_10_b3" will return 3 or -1 if the version can not be read
public
int
getMajorVersion
(String javaVersion)
Parameters
javaVersion
| the full Java version string |
Returns
- the Major version of the Java string, e.g. "1.6.0_10_b3" will return 6 or -1 if the version can not be read
public
int
getMinorVersion
(String javaVersion)
Parameters
javaVersion
| the full Java version string |
Returns
- the Minor version of the Java string, e.g. "1.6.0_10_b3" will return 10 or -1 if the version can not be read