com.atlassian.diff
Class WordLevelDiffer

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

public class WordLevelDiffer
extends Object

Diffs words in a line of text.


Constructor Summary
WordLevelDiffer()
           
 
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
 

Constructor Detail

WordLevelDiffer

public WordLevelDiffer()
Method Detail

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


Copyright © 2002-2014 Atlassian. All Rights Reserved.