public void putString(String s) throws ArrayIndexOutOfBoundsException, UnsupportedEncodingException {
  byte[] bytes=s.getBytes("UTF-8");
  int length=bytes.length;
  int endAt=m_index + length + 1;
  if (endAt > m_content.length)   throw new ArrayIndexOutOfBoundsException(endAt + " > " + m_content.length);
  System.arraycopy(bytes,0,m_content,m_index,length);
  m_index+=length;
  m_content[m_index++]='\0';
  debugAppendString(s);
}

public void putString ( String s ) throws ArrayIndexOutOfBoundsException , UnsupportedEncodingException { byte [ ] bytes = s . getBytes ( "UTF-8" ) ; int length = bytes . length ; int endAt = m_index + length + 1 ; if ( endAt > m_content . length ) throw new ArrayIndexOutOfBoundsException ( endAt + " > " + m_content . length ) ; System . arraycopy ( bytes , 0 , m_content , m_index , length ) ; m_index += length ; m_content [ m_index ++ ] = '\0' ; debugAppendString ( s ) ; }
place a string into the message ( using utf - 8 encoding )
