In the java.nio.ByteOrder class there is a method called nativeOrder()java.sun.com/.../ByteOrder.html