Java stores binary values internally and in files MSB (Most Significant Byte) first, i.e. high order part first. This is referred to as big-endian byte sex or sometimes network order. Java binary files, Java sockets and OpenType font files also use big-endian order.
Everything in Java binary format files is stored big-endian, MSB (Most Significant Bit) MSB first. This is sometimes called network order. This is good news. This means if you use only Java, all files are done the same way on all platforms.
Java has no struct I/O and no unions or any of the other endian-sensitive language constructs.
Read full article from endian : Java Glossary
Everything in Java binary format files is stored big-endian, MSB (Most Significant Bit) MSB first. This is sometimes called network order. This is good news. This means if you use only Java, all files are done the same way on all platforms.
Java has no struct I/O and no unions or any of the other endian-sensitive language constructs.
Reading Little-Endian Binary Files
The most common problem is dealing with files stored in little-endian format.Read full article from endian : Java Glossary
No comments:
Post a Comment