com.atlassian.diff
Class WordLevelDiffer

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

public class WordLevelDiffer
extends java.lang.Object

Diffs words in a line of text.


Constructor Summary
WordLevelDiffer()
           
 
Method Summary
static java.util.List<DiffChunk> diffLine(java.lang.String originalLine, java.lang.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 java.util.List<DiffChunk> diffLine(java.lang.String originalLine,
                                                 java.lang.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-2011 Atlassian. All Rights Reserved.