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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
// CLASSIFICATION: UNCLASSIFIED
package mspccs_spreadsheet_tester.utility;
/*
* Platform.java
*
* Created on August 27, 2001, 4:05 PM
*/
/**
*
* @author amyc
* @version
*/
public class Platform extends Object {
private static String os = System.getProperty("os.name");
public static String separator = System.getProperty("file.separator");
private static String javaVersion = System.getProperty("java.version");
//Determine if operating system is Windows
public static boolean isWindows;
static
{
if ( os != null && os.startsWith("Windows"))
isWindows = true;
else
isWindows = false;
}
//Determine if operating system is Unix
public static boolean isUnix;
static
{
if ( (os != null) && (os.equals("SunOS") || (os.equals("Irix"))))
isUnix = true;
else
isUnix = false;
}
//Determine if operating system is Unix
public static boolean isLinux;
static
{
if ( (os != null) && (os.equals("Linux")))
isLinux = true;
else
isLinux = false;
}
public static boolean isJavaV1_3;
static
{
if ( (javaVersion != null) && (javaVersion.startsWith("1.3")))
isJavaV1_3 = true;
else
isJavaV1_3 = false;
}
/** Creates new Platform */
public Platform()
{
}
}
// CLASSIFICATION: UNCLASSIFIED
|