Changeset 13207


Ignore:
Timestamp:
2006-11-02T11:32:20+13:00 (18 years ago)
Author:
kjdon
Message:

added isWindows9x()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/util/Misc.java

    r10900 r13207  
    5959    }
    6060   
     61    public static boolean isWindows9x() {
     62        Properties props = System.getProperties();
     63        String os_name = props.getProperty("os.name","");
     64        if(os_name.startsWith("Windows") && os_name.indexOf("9") != -1) {
     65            return true;
     66        }
     67        return false;
     68    }
     69
    6170    /** Method to determine if the host system is MacOS based.
    6271     * @return a boolean which is true if the platform is MacOS, false otherwise
     
    7079        return false;
    7180    }
     81   
    7282    public static boolean isBigEndian() {
    7383
Note: See TracChangeset for help on using the changeset viewer.