Changeset 10899

Show
Ignore:
Timestamp:
15.11.2005 16:25:12 (14 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 modified

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