private void insert(final char[] revB,final DiffBlock curB) throws UnsupportedEncodingException {
  String text=copy(revB,curB.getRevBStart(),curB.getRevBEnd());
  DiffPart action=new DiffPart(DiffAction.INSERT);
  action.setStart(version.length());
  codecData.checkBlocksizeS(version.length());
  action.setText(text);
  codecData.checkBlocksizeL(text.getBytes(WIKIPEDIA_ENCODING).length);
  diff.add(action);
  version.append(text);
}

private void insert ( final char [ ] revB , final DiffBlock curB ) throws UnsupportedEncodingException { String text = copy ( revB , curB . getRevBStart ( ) , curB . getRevBEnd ( ) ) ; DiffPart action = new DiffPart ( DiffAction . INSERT ) ; action . setStart ( version . length ( ) ) ; codecData . checkBlocksizeS ( version . length ( ) ) ; action . setText ( text ) ; codecData . checkBlocksizeL ( text . getBytes ( WIKIPEDIA_ENCODING ) . length ) ; diff . add ( action ) ; version . append ( text ) ; }
creates an insert operation .
