code: public final void setContent(byte[] content)
      {
          //clear non relevant flags
          this.contentString=null;
          this.contentParts=null;
          this.contentType=ContentType.BINARY;
  
          if(content==null)
          {
              this.contentBinary=null;
          }
          else
          {
              this.contentBinary=content.clone();
          }
      }
docs: This function sets the content.
  
  @param   content
  The new value for the content