How can I determine if the OS is little/big endian in Java?
+20
A:
Check whether java.nio.ByteOrder.nativeOrder()
is equal to ByteOrder.LITTLE_ENDIAN
or ByteOrder.BIG_ENDIAN
.
SLaks
2009-08-31 18:18:33
Thank you very much. That helped
rupa
2009-08-31 18:32:43
Then mark it accepted by clicking the check
SLaks
2009-08-31 18:40:13
@rupa By marking an answer will get you additional 2 points :)
Boris Pavlović
2009-08-31 18:42:43
+1 for having the gumption to ask the OP to "accept" an answer.
erickson
2009-08-31 18:50:36
Much like erickson, +1 - both for the correct answer, and the gumption :)
aperkins
2009-08-31 19:51:39
+1 because I dont think we're going to see 'rupa' on this forum again..
Ryan Fernandes
2009-09-01 03:25:56