Package com.jgcomptech.tools
Class OSInfo.Name
- java.lang.Object
-
- com.jgcomptech.tools.OSInfo.Name
-
- Enclosing class:
- OSInfo
public static final class OSInfo.Name extends java.lang.Object
Returns the different names provided by the operating system.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
ComputerNameActive()
Returns the current computer name.static java.lang.String
ComputerNamePending()
Returns the pending computer name that it will update to on reboot.static OSList
Enum()
Returns the name of the operating system running on this Computer.static java.lang.String
String()
Returns the name of the operating system running on this computer.static java.lang.String
StringExpanded()
Returns a full version String, ex.: "Windows XP SP2 (32 Bit)".static java.lang.String
StringExpandedFromRegistry()
Returns a full version String, ex.: "Windows XP SP2 (32 Bit)".
-
-
-
Method Detail
-
StringExpanded
public static java.lang.String StringExpanded() throws java.io.IOException, java.lang.InterruptedException
Returns a full version String, ex.: "Windows XP SP2 (32 Bit)".- Returns:
- String representing a fully displayable version as stored in WMI
- Throws:
java.io.IOException
- if error occursjava.lang.InterruptedException
- if command is interrupted
-
StringExpandedFromRegistry
public static java.lang.String StringExpandedFromRegistry() throws java.io.IOException, java.lang.InterruptedException
Returns a full version String, ex.: "Windows XP SP2 (32 Bit)".- Returns:
- String representing a fully displayable version as stored in Windows Registry
- Throws:
java.io.IOException
- if error occursjava.lang.InterruptedException
- if command is interrupted
-
Enum
public static OSList Enum() throws java.io.IOException, java.lang.InterruptedException
Returns the name of the operating system running on this Computer.- Returns:
- Enum value containing the the operating system name
- Throws:
java.io.IOException
- if error occursjava.lang.InterruptedException
- if command is interrupted
-
String
public static java.lang.String String() throws java.io.IOException, java.lang.InterruptedException
Returns the name of the operating system running on this computer.- Returns:
- String value containing the the operating system name
- Throws:
java.io.IOException
- if error occursjava.lang.InterruptedException
- if command is interrupted
-
ComputerNameActive
public static java.lang.String ComputerNameActive()
Returns the current computer name.- Returns:
- String value of current computer name
-
ComputerNamePending
public static java.lang.String ComputerNamePending()
Returns the pending computer name that it will update to on reboot.- Returns:
- String value of the pending computer name
-
-