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.ObjectReturns the full version of the operating system running on this Computer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOSInfo.Windows.Version.TypeA list of Version types used in theOSInfo.Windows.Versionclass.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intBuild()Returns the build version of the operating system running on this Computer.static java.lang.StringMain()Returns the full version of the operating system running on this Computer.static intMajor()Returns the major version of the operating system running on this Computer.static intMinor()Returns the minor version of the operating system running on this Computer.static intNumber()Returns a numeric value representing OS version.static intRevision()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.InterruptedExceptionReturns 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.InterruptedExceptionReturns 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.InterruptedExceptionReturns 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.InterruptedExceptionReturns 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.InterruptedExceptionReturns 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.InterruptedExceptionReturns 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
-
-