Package com.dassault_systemes.PortalNative.PLNtools |
java.lang.Object
|
+-com.dassault_systemes.PortalNative.PLNtools.OSServices
Framework : PortalNative
Module : PLNtools
public class OSServices
This class manages the differents OSes on the browsers.
OS_AIX
int OS_AIX
Identifying value for AIX returned by getOSID.
OS_SOLARIS
int OS_SOLARIS
Identifying value for SOLARIS returned by getOSID.
OS_IRIX
int OS_IRIX
Identifying value for Irix returned by getOSID.
OS_HPUX
int OS_HPUX
Identifying value for HPUX returned by getOSID.
OS_WINDOWSNT
int OS_WINDOWSNT
Identifying value for Windows NT returned by getOSID.
OS_WINDOWS95
int OS_WINDOWS95
Identifying value for Windows95 returned by getOSID.
OS_UNKNOWN
int OS_UNKNOWN
Identifying value for an unknown OS returned by getOSID.
get
OSServices get()
Returns the unique instance of this class
getenv
String getenv(String name)
Returns an environment variable value or null if not found
- Parameters:
name
- name of the environment variable
- Returns:
the value of the environment variable
getOSID
int getOSID()
Retrieves the type of platform.
Role: Retrieves the type of operating system on where the code is running
- Returns:
Legal values
- OS_AIX
- Operating System is AIX.
- OS_SOLARIS
- Operating System is SOLARIS.
- OS_IRIX
- Operating System is IRIX.
- OS_HPUX
- Operating System is HPUX.
- OS_WindowsNT
- Operating System is WindowsNT.
- OS_Windows95
- Operating System is Windows95 .
- OS_UNKNOWN
- Operating System is Unknown or an error as occured.
getTempPath
String getTempPath()
Returns the path to a temporary directory location,
such as "c:\tmp\" for Windows and "/tmp/" for Unix
Copyright © 2000, Dassault Systèmes. All rights reserved