summarylogtreecommitdiffstats
path: root/OperatingSystemUtil.java
blob: eb20adc788e6da984698a6168a2ed680ddaa931b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package de.bookman.util;

import java.io.File;

public class OperatingSystemUtil {
    public OperatingSystemUtil() {
    }

    public static File getTempDir() {
        return new File(System.getProperty("java.io.tmpdir"));
    }

    public static boolean jvmIs64Bit() {
        return System.getProperty("sun.arch.data.model").equals("64");
    }

    public static boolean isLinux() {
        return false;
    }

    public static boolean isWindows() {
        return false;
    }

    public static boolean isMacOSX() {
        return true;
    }
}