Changeset 10899 for trunk/gsdl3


Ignore:
Timestamp:
2005-11-15T16:25:12+13:00 (18 years ago)
Author:
kjdon
Message:

instead of using isMac() to test for bigendianness, use Misc.isBigEndian()

Location:
trunk/gsdl3/src/java/org/greenstone/gsdl3/util
Files:
2 edited

Legend:

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

    r10650 r10899  
    292292
    293293    String db_ext = ".ldb";
    294     if (Misc.isMac()) {
     294    if (Misc.isBigEndian()) {
    295295        db_ext = ".bdb";
    296296    }
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/util/Misc.java

    r10188 r10899  
    7070        return false;
    7171    }
     72    public static boolean isBigEndian() {
     73
     74    System.err.println(System.getProperty("sun.cpu.endian"));
     75    if (System.getProperty("sun.cpu.endian").equals("big")) {
     76        return true;
     77    }
     78    return false;
     79
     80    }
    7281
    7382    public static BufferedReader makeHttpConnection(String url_string)
     
    8190    }
    8291
     92    public static void main(String [] args) {
     93    isBigEndian();
     94    }
     95
    8396}
    8497
Note: See TracChangeset for help on using the changeset viewer.