code: private void replace(final char[] revA, final char[] revB,
  			final DiffBlock curA, final DiffBlock curB)
  		throws UnsupportedEncodingException
  	{
  
  		// Replace (C S E L T)
  		String text = copy(revB, curB.getRevBStart(), curB.getRevBEnd());
  
  		DiffPart action = new DiffPart(DiffAction.REPLACE);
  
  		// S
  		action.setStart(version.length());
  		codecData.checkBlocksizeS(version.length());
  
  		// E
  		action.setLength(curA.getRevAEnd() - curA.getRevAStart());
  		codecData.checkBlocksizeE(action.getLength());
  
  		// L T
  		action.setText(text);
  		codecData.checkBlocksizeL(text.getBytes(WIKIPEDIA_ENCODING).length);
  
  		diff.add(action);
  
  		version.append(text);
  	}
docs: Creates a replace operation.
  
  @param revA
  Reference to revision A
  @param revB
  Reference to revision B
  @param curA
  Reference to current block A
  @param curB
  Reference to current block B
  
  @throws UnsupportedEncodingException
  if the character encoding is unsupported