public void writeString(String str) throws TException {
  try {
    byte[] bytes=str.getBytes("UTF-8");
    writeBinary(bytes,0,bytes.length);
  }
 catch (  UnsupportedEncodingException e) {
    throw new TException("UTF-8 not supported!");
  }
}

public void writeString ( String str ) throws TException { try { byte [ ] bytes = str . getBytes ( "UTF-8" ) ; writeBinary ( bytes , 0 , bytes . length ) ; } catch ( UnsupportedEncodingException e ) { throw new TException ( "UTF-8 not supported!" ) ; } }
write a string to the wire with a varint size preceding .
