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()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.