Package com.jgcomptech.tools
Class OSInfo.Windows.Version
- java.lang.Object
-
- com.jgcomptech.tools.OSInfo.Windows.Version
-
- Enclosing class:
- OSInfo.Windows
public static final class OSInfo.Windows.Version extends java.lang.Object
Returns the full version of the operating system running on this Computer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OSInfo.Windows.Version.Type
A list of Version types used in theOSInfo.Windows.Version
class.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
Build()
Returns the build version of the operating system running on this Computer.static java.lang.String
Main()
Returns the full version of the operating system running on this Computer.static int
Major()
Returns the major version of the operating system running on this Computer.static int
Minor()
Returns the minor version of the operating system running on this Computer.static int
Number()
Returns a numeric value representing OS version.static int
Revision()
Returns the revision version of the operating system running on this Computer.
-
-
-
Method Detail
-
Main
public static java.lang.String Main() throws java.io.IOException, java.lang.InterruptedException
Returns the full version of the operating system running on this Computer.- Returns:
- Full version as string
- Throws:
java.io.IOException
- if error occursjava.lang.InterruptedException
- if command is interrupted
-
Major
public static int Major() throws java.io.IOException, java.lang.InterruptedException
Returns the major version of the operating system running on this Computer.- Returns:
- Major version as int
- Throws:
java.io.IOException
- if error occursjava.lang.InterruptedException
- if command is interrupted
-
Minor
public static int Minor() throws java.io.IOException, java.lang.InterruptedException
Returns the minor version of the operating system running on this Computer.- Returns:
- Minor version as int
- Throws:
java.io.IOException
- if error occursjava.lang.InterruptedException
- if command is interrupted
-
Build
public static int Build() throws java.io.IOException, java.lang.InterruptedException
Returns the build version of the operating system running on this Computer.- Returns:
- Build version as int
- Throws:
java.io.IOException
- if error occursjava.lang.InterruptedException
- if command is interrupted
-
Revision
public static int Revision() throws java.io.IOException, java.lang.InterruptedException
Returns the revision version of the operating system running on this Computer.- Returns:
- Build Revision as int
- Throws:
java.io.IOException
- if error occursjava.lang.InterruptedException
- if command is interrupted
-
Number
public static int Number() throws java.io.IOException, java.lang.InterruptedException
Returns a numeric value representing OS version.- Returns:
- OSMajorVersion times 10 plus OSMinorVersion
- Throws:
java.io.IOException
- if error occursjava.lang.InterruptedException
- if command is interrupted
-
-