public PacketOutputStream writeStringLength(final String str){
  try {
    final byte[] strBytes=str.getBytes("UTF-8");
    assureBufferCapacity(strBytes.length + 9);
    writeFieldLength(strBytes.length);
    buffer.put(strBytes);
  }
 catch (  UnsupportedEncodingException u) {
  }
  return this;
}

public PacketOutputStream writeStringLength ( final String str ) { try { final byte [ ] strBytes = str . getBytes ( "UTF-8" ) ; assureBufferCapacity ( strBytes . length + 9 ) ; writeFieldLength ( strBytes . length ) ; buffer . put ( strBytes ) ; } catch ( UnsupportedEncodingException u ) { } return this ; }
write string in binary format .
