In Java, I just read a file into a ByteBuffer. When I started checking to make sure that the ByteBuffer contained the right bytes, I noticed that it had mostly the correct start and end bytes, except for the 3rd byte, it has -117 instead of what emacs says should be 139 (8b in hexl-mode). What gives? Does this have something to do with Big/Little Endian..?
Just to be clear, according to emacs the first four bytes should be:
1f:8b:08:00 which is equal to 31 139 8 0
and my java gets:
31 -117 8 0
Any ideas?