public static EPlatform getOSname ( ) { if ( isAix ( ) ) { _instance . platform = EPlatform . AIX ; } else if ( isDigitalUnix ( ) ) { _instance . platform = EPlatform . Digital_Unix ; } else if ( isFreeBSD ( ) ) { _instance . platform = EPlatform . FreeBSD ; } else if ( isHPUX ( ) ) { _instance . platform = EPlatform . HP_UX ; } else if ( isIrix ( ) ) { _instance . platform = EPlatform . Irix ; } else if ( isLinux ( ) ) { _instance . platform = EPlatform . Linux ; } else if ( isMacOS ( ) ) { _instance . platform = EPlatform . Mac_OS ; } else if ( isMacOSX ( ) ) { _instance . platform = EPlatform . Mac_OS_X ; } else if ( isMPEiX ( ) ) { _instance . platform = EPlatform . MPEiX ; } else if ( isNetWare ( ) ) { _instance . platform = EPlatform . NetWare_411 ; } else if ( isOpenVMS ( ) ) { _instance . platform = EPlatform . OpenVMS ; } else if ( isOS2 ( ) ) { _instance . platform = EPlatform . OS2 ; } else if ( isOS390 ( ) ) { _instance . platform = EPlatform . OS390 ; } else if ( isOSF1 ( ) ) { _instance . platform = EPlatform . OSF1 ; } else if ( isSolaris ( ) ) { _instance . platform = EPlatform . Solaris ; } else if ( isSunOS ( ) ) { _instance . platform = EPlatform . SunOS ; } else if ( isWindows ( ) ) { _instance . platform = EPlatform . Windows ; } else { _instance . platform = EPlatform . Others ; } return _instance . platform ; }
Get OS name