Here you can find the source of writeString(DataOutput out, String s)
public static void writeString(DataOutput out, String s) throws IOException
//package com.java2s; //License from project: GNU General Public License import java.io.DataOutput; import java.io.IOException; public class Main { public static void writeString(DataOutput out, String s) throws IOException { out.writeUTF(s);/*from w w w . j a v a 2s . co m*/ } }