1 | boolean isWin95() {↵ | | 1 | boolean isWinNT() {↵
|
2 | return "Windows 95".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$↵ | | 2 | return "Windows NT".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * Returns whether the underlying operating system is Windows 98.↵ | | 5 | * Returns whether the underlying operating system is Windows 2000.↵
|
6 | * ↵ | | 6 | * ↵
|
7 | * @return isWin98↵ | | 7 | * @return isWin2K↵
|
8 | */↵ | | 8 | */↵
|
9 | public static boolean isWin98() {↵ | | 9 | public static boolean isWin2K() {↵
|
10 | return "Windows 98".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$↵ | | 10 | return "Windows 2000".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$↵
|
11 | }↵ | | 11 | }↵
|
|
12 | /**↵ | | 12 | /**↵
|
13 | * Returns whether the underlying operating system is Windows ME.↵ | | 13 | * Returns whether the underlying operating system is Windows 2003.↵
|
14 | * ↵ | | 14 | * ↵
|
15 | * @return isWinME↵ | | 15 | * @return isWin2K3↵
|
16 | */↵ | | 16 | */↵
|
17 | public static boolean isWinME() {↵ | | 17 | public static boolean isWin2K3() {↵
|
18 | return "Windows ME".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$↵ | | 18 | return "Windows 2003".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$↵
|
19 | }↵ | | 19 | }↵
|
|
20 | /**↵ | | 20 | /**↵
|
21 | * Returns whether the underlying operating system is Windows NT.↵ | | 21 | * Returns whether the underlying operating system is Windows XP.↵
|
22 | * ↵ | | 22 | * ↵
|
23 | * @return isWinNT↵ | | 23 | * @return isWinXP↵
|
24 | */↵ | | 24 | */↵
|
25 | public static boolean isWinNT() {↵ | | 25 | public static boolean isWinXP() {↵
|
26 | return "Windows NT".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$↵ | | 26 | return "Windows XP".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$↵
|
27 | }↵ | | 27 | }↵
|
|
28 | /**↵ | | 28 | /**↵
|
29 | * Returns whether the underlying operating system is Windows 2000.↵ | | 29 | * Returns whether the underlying operating system is Linux.↵
|
30 | * ↵ | | 30 | * ↵
|
31 | * @return isWin2K↵ | | 31 | * @return isLinux↵
|
32 | */↵ | | 32 | */↵
|
33 | public static boolean isWin2K() {↵ | | 33 | public static boolean isLinux() {↵
|
34 | return "Windows 2000".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$↵ | | 34 | return "Linux".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$↵
|
35 | }↵ | | 35 | }↵
|
|
36 | /**↵ | | 36 | /**↵
|
37 | * Returns whether the underlying operating system is Windows 2003.↵ | | 37 | * Returns whether the underlying operating system is Solaris.↵
|
38 | * ↵ | | 38 | * ↵
|
39 | * @return isWin2K3↵ | | 39 | * @return isSolaris↵
|
40 | */↵ | | 40 | */↵
|
41 | public static boolean isWin2K3() {↵ | | 41 | public static boolean isSolaris() {↵
|
42 | return "Windows 2003".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$↵ | | 42 | return "Solaris".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$↵
|
43 | } | | 43 | }
|