Package com.day.util.diff
Class DocumentDiff3
- java.lang.Object
 - 
- com.day.util.diff.DocumentDiff3
 
 
- 
public class DocumentDiff3 extends java.lang.ObjectImplements a tree-way diff between a base document and 2 derived ones. The result of the diff operation is a list ofHunk3that can record the changes and conflicts. 
- 
- 
Constructor Summary
Constructors Constructor Description DocumentDiff3(Document base, Document left, Document right)Creates a new document diff 3 object. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Hunk3getHunks()Returns a chain ofHunk3s that contain the modifications.booleanhasConflicts()Indicates if any of the hunks has a conflict.voidwrite(DiffWriter w, boolean showBase)Writes the resulting document to the given write.voidwrite(java.lang.StringBuffer buf, java.lang.String lineSeparator, boolean showBase)Writes the resulting document to the given string buffer. 
 - 
 
- 
- 
Method Detail
- 
getHunks
public Hunk3 getHunks()
Returns a chain ofHunk3s that contain the modifications.- Returns:
 - a chain of 
Hunk3s. 
 
- 
hasConflicts
public boolean hasConflicts()
Indicates if any of the hunks has a conflict.- Returns:
 trueif any of the hunks has a conflict.
 
- 
write
public void write(java.lang.StringBuffer buf, java.lang.String lineSeparator, boolean showBase)Writes the resulting document to the given string buffer. this may include conflicting regions.- Parameters:
 buf- the string buffer to write tolineSeparator- the line separator to useshowBase- if set totruethe base section of a conflict is also included in the output.
 
- 
write
public void write(DiffWriter w, boolean showBase) throws java.io.IOException
Writes the resulting document to the given write. this may include conflicting regions.- Parameters:
 w- the writer to write toshowBase- if set totruethe base section of a conflict is also included in the output.- Throws:
 java.io.IOException- if an I/O error occurs
 
 - 
 
 -