In C I could the Endianess of the machine by the following method. how would I get using a python or Java program?. In Ja
C
Endianess
python
Java
In Java, it's just
ByteOrder.nativeOrder();
...which returns either BIG_ENDIAN or LITTLE_ENDIAN.
BIG_ENDIAN
LITTLE_ENDIAN
http://docs.oracle.com/javase/6/docs/api/java/nio/ByteOrder.html