I\'m writing a java socket program to read data from server, I\'ve no control to server, below is protocol agreed,
Watch out for the big endinanness!
DataxxxStream - although it is quite handy - does not offer a full support for both little and big endian numbers and arbitrary String encodings.
See my post at How to Read Byte Stream from Socket