Example #1
0
 /// <exception cref="System.IO.IOException"/>
 public static void WriteString(string s, java.io.DataOutputStream dataoutputstream
                                )
 {
     if (s.Length > 32767)
     {
         throw new System.IO.IOException("String too big");
     }
     else
     {
         dataoutputstream.WriteShort(s.Length);
         dataoutputstream.WriteChars(s);
         return;
     }
 }