Why would I choose one rather than the other?
I have read the API of each topic however I am still quite confused about it:
1) writeBytes() write 1 byte for each character non considering the higher bit.. ok
2) writeUTF() use UTF-8 encoding which uses 8 bits.. so it's not like this method uses UTF-16 and can encode more unicodes.. It still read 8 bits..
Furthermore writeBytes is to be used if the lenght of the String is not important. What does that mean? Real life example?
Furthermore, quoting the javadoc:
...char: The char data type is a single 16-bit Unicode character. It has a minimum value of '\u0000' (or 0) and a maximum value of '\uffff' (or 65,535 inclusive).
I would be glad if anybody could provide me with a clarification.
Thanks a lot in advance.
The_Nick.