private void encodeInsert(final DiffPart part) throws UnsupportedEncodingException, EncodingException {
  data.writeBit(0);
  data.writeBit(1);
  data.writeBit(0);
  data.writeValue(codecData.getBlocksizeS(),part.getStart());
  String text=part.getText();
  byte[] bText=text.getBytes(WIKIPEDIA_ENCODING);
  data.writeValue(codecData.getBlocksizeL(),bText.length);
  data.write(bText);
}

private void encodeInsert ( final DiffPart part ) throws UnsupportedEncodingException , EncodingException { data . writeBit ( 0 ) ; data . writeBit ( 1 ) ; data . writeBit ( 0 ) ; data . writeValue ( codecData . getBlocksizeS ( ) , part . getStart ( ) ) ; String text = part . getText ( ) ; byte [ ] bText = text . getBytes ( WIKIPEDIA_ENCODING ) ; data . writeValue ( codecData . getBlocksizeL ( ) , bText . length ) ; data . write ( bText ) ; }
encodes an insert operation .
