Package com.atlassian.diff
Class WordLevelDiffer
java.lang.Object
com.atlassian.diff.WordLevelDiffer
Diffs words in a line of text. Ignores differences of EOL characters used.
-
Constructor Summary
Constructors -
Method Summary
-
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 linerevisedLine
- the revised line- Returns:
- a list of chunks
- Throws:
org.apache.commons.jrcs.diff.DifferentiationFailedException
-