package

com.atlassian.confluence.diff

Interfaces

DiffChunk A DiffChunk classifies a chunk as added, deleted, unchanged or changed. 
Differ Computes a diff between the specified left and right input. 
DiffPostProcessor An interface implemented by classes that want to process the output of the Confluence Diff prior to it being returned as complete. 

Classes

ChangeChunk Represents multiple consecutive lines of changes. 
CharacterChunk Represents a group of characters sharing the same diff type - unchanged, added or deleted. 
CharLevelDiffer Diffs a String as a sequence of chars; used when words are changed to determine if the word has been merely altered or completely replaced. 
ConfluenceDiff Wraps LineLevelDiffer chunks with Confluence goodness. 
ConfluenceHtmlSaxDiffOutput

Takes a branch root and creates an HTML file for it. 

ContextBlockMarkingDiffPostProcessor

A DiffPostProcessor that will mark blocks of content around the diff to aid the identification of context. 

DaisyHtmlDiffer Daisy HTML diff implementation. 
DeltaRanker Ranks the changes between two versions of a line, where there may be multiple original or revised lines. 
LineChunk Represents one line of diffed text. 
LineLevelDiffer Wraps an Apache Diff with Atlassian goodness, making it closer to how a human expects the difference to appear. 
LineRanker Compares an original line against a number of revised lines and determines the revised line that is most similar to the original. 
MacroIconInsertingPostProcessor Adds icons and friendly titles to diff headers in macros. 
StripEmptySpansDiffPostProcessor CONFDEV-6604 A DiffPostProcessor that removes any empty span elements from the document, since these are invalid html and make IE8 fail to render the page correctly. 
StripToContextDiffPostProcessor A DiffPostProcessor that will return a document containing only the blocks of content that are either containing a diff or are context for a diff. 
TestCharLevelDiffer  
TestConfluenceDiff  
TestContextSplitter  
TestDaisyHtmlDiffer  
TestDeltaRanker  
TestLineLevelDiffer  
TestLineRanker  
TestMacroIconInsertingPostProcessor Tests the behaviour of the MacroIconInsertingPostProcessor
TestStripEmptySpansDiffPostProcessor Tests the behaviour of the MacroIconInsertingPostProcessor
TestWordLevelDiffer  
WikiConvertingHtmlDiffer A Differ implementation that will inspect the BodyType of the content being diff'd and convert any wiki content to HTML prior to diffing using the supplied DaisyHtmlDiffer delegate. 
WikiConvertingHtmlDifferTest  
WordChunk Represents a single word of diffed text. 
WordLevelDiffer Diffs words in a line of text. 
XSLDiffPostProcessor A DiffPostProcessor that will apply a configured XSL stylesheet to the Document. 

Enums

DiffType Holds all the different types of diffs and the styles applied to them This need to be available because some email clients don't support adding style classes to emails. 

Exceptions

DiffException  
InterruptedDiffException Exception thrown when the diff timed out or failed, possibly in another thread.