Class OSInfo.Windows.Edition

  • Enclosing class:
    OSInfo.Windows

    public static final class OSInfo.Windows.Edition
    extends java.lang.Object
    Returns the product type of the operating system running on this Computer.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int ProductType()
      Returns the product type of the OS as an integer.
      static java.lang.String String()
      Returns the product type of the OS as a string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • ProductType

        public static int ProductType()
        Returns the product type of the OS as an integer.
        Returns:
        integer equivalent of the operating system product type
      • String

        public static java.lang.String String()
                                       throws java.io.IOException,
                                              java.lang.InterruptedException
        Returns the product type of the OS as a string.
        Returns:
        string containing the the operating system product type
        Throws:
        java.io.IOException - if error occurs
        java.lang.InterruptedException - if command is interrupted