What's the difference between writeUTF and writeChars? (methods of ObjectOutputStream) Further I have not found the corresponding readChars in ObjectInputStream.
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
writeUTF
writes text in UTF-8 format encoding preceeded with text length, soreadUTF
knows how many characters to read from stream.writeChars
writes text as a sequence of 2-bytes chars with no length. To read it, we should usereadChar
method and we need to know how many chars were written.writeChars() uses Unicode values
writeUTF() uses a slightly-modified version of UTF-8