com.atlassian.diff
Class WordLevelDiffer
java.lang.Object
com.atlassian.diff.WordLevelDiffer
public class WordLevelDiffer
- extends Object
Diffs words in a line of text.
Method Summary |
static List<DiffChunk> |
diffLine(String originalLine,
String revisedLine)
Returns a list of chunks that contain text and the status of the text - unchanged, added or deleted. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WordLevelDiffer
public WordLevelDiffer()
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
Copyright © 2002-2014 Atlassian. All Rights Reserved.