code: public void setBody(String contents)  {
  		if (contents == null) {
  			return ;
  		}
  		
  		cachedString = null;
  		if (charset == null && isDetermineCharset()) {
  			// Attempt to determine the charset to avoid data loss.
  			charset = determineCharset(contents);
  		}
  		
  		body = contents.getBytes(getCharsetImpl());
  		
  		pos = body.length;
  	}
docs: Sets the given {@code contents} as the body, using the current charset.
  <p>
  If the {@code contents} are {@code null} the call to this method has no effect.
  <p>
  <strong>Note:</strong> Setting the contents with incorrect charset might lead to data loss.
  
  @param contents the new contents of the body, might be {@code null}
  @see #setCharset(String)