net.sf.jeters.util
Class StringDiffHelper

java.lang.Object
  extended by net.sf.jeters.util.StringDiffHelper

public final class StringDiffHelper
extends java.lang.Object

tool that provides functionality usually required for diff views, such as removing unchanged parts and highlighting differences


Constructor Summary
StringDiffHelper()
           
 
Method Summary
static java.lang.String[] removeEqualSentences(java.lang.String textVersion1, java.lang.String textVersion2, int characterPadding)
          similar to #removeEqualParts(String, String, int), but removes full sentences only (text parts ending with '.')
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringDiffHelper

public StringDiffHelper()
Method Detail

removeEqualSentences

public static java.lang.String[] removeEqualSentences(java.lang.String textVersion1,
                                                      java.lang.String textVersion2,
                                                      int characterPadding)
similar to #removeEqualParts(String, String, int), but removes full sentences only (text parts ending with '.')

Parameters:
characterPadding - number of unchanged characters that will remain part of the result before and after the block of changed sentences; >= 0 //TODO: not yet used
Returns:
String array (size 2); 0: textVersion1 without unchanged parts; 1: textVersion2 without unchanged parts