question: 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!" ) ; } }
target:  Write a string to the wire with a varint size preceding.