The Data{Input, Output}Stream classes have these methods:
writeUTF
readUTF
These would be more appropriately named:
writeString
readString
These methods are cause confusion because some people are not sure if the UTF encoding is UTF-8 or something else. In fact, it is something else...a "modified" UTF-8. However, the fact that it is any UTF is irrelevant...it is really a String object.
writeUTF
readUTF
These would be more appropriately named:
writeString
readString
These methods are cause confusion because some people are not sure if the UTF encoding is UTF-8 or something else. In fact, it is something else...a "modified" UTF-8. However, the fact that it is any UTF is irrelevant...it is really a String object.
- relates to
-
JDK-4412514 (spec) java.io.DataInputStream.readUTF() is wrong about encoding name
-
- Closed
-