OutputStreamのwriteUTF関数

541 ワード

writeUTF
     public void writeUTF(String str)
              throws IOException

Writes two bytes of length information to the output stream, followed by the Java modified UTF representation of every character in the string.
writeUTFは、送信時に自動的にデータ長情報が加算されます