Class WordLevelDiffer

java.lang.Object
com.atlassian.diff.WordLevelDiffer

public class WordLevelDiffer extends Object
Diffs words in a line of text. Ignores differences of EOL characters used.
  • Constructor Details

    • WordLevelDiffer

      public WordLevelDiffer()
  • Method Details

    • diffLine

      public static List<DiffChunk> diffLine(String originalLine, String revisedLine) throws org.apache.commons.jrcs.diff.DifferentiationFailedException
      Returns a list of chunks that contain text and the status of the text - unchanged, added or deleted.
      Parameters:
      originalLine - the original line
      revisedLine - the revised line
      Returns:
      a list of chunks
      Throws:
      org.apache.commons.jrcs.diff.DifferentiationFailedException