public void put(ByteBuffer byteBuffer,int contentLength){
  if (contentLength > (bytes.length - this.contentLength)) {
    throw new IllegalArgumentException("contentLength is too large");
  }
  byteBuffer.get(bytes,this.contentLength,contentLength);
  this.contentLength+=contentLength;
}

public void put ( ByteBuffer byteBuffer , int contentLength ) { if ( contentLength > ( bytes . length - this . contentLength ) ) { throw new IllegalArgumentException ( "contentLength is too large" ) ; } byteBuffer . get ( bytes , this . contentLength , contentLength ) ; this . contentLength += contentLength ; }
appends content from the specified bytebuffer to this bytearray
