public class Diff
extends java.lang.Object
| Constructor and Description |
|---|
Diff(java.lang.String[] firstfileIn,
java.lang.String[] secondfileIn) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Hunk> |
diffFiles()
Performs the file diff.
|
java.lang.String |
htmlDiff(boolean onlyChanged) |
java.lang.String |
patchDiff(java.lang.String pathOne,
java.lang.String pathTwo,
java.util.Date fromDate,
java.util.Date toDate) |
public Diff(java.lang.String[] firstfileIn,
java.lang.String[] secondfileIn)
firstfileIn - The old(from) file as a String array.secondfileIn - The new(to) file as a String array.public java.lang.String htmlDiff(boolean onlyChanged)
onlyChanged - whether the results should only changed lines.RhnHtmlDiffWriterpublic java.lang.String patchDiff(java.lang.String pathOne,
java.lang.String pathTwo,
java.util.Date fromDate,
java.util.Date toDate)
pathOne - The path of the from(old, first) filepathTwo - The path of the to(new, second) filefromDate - The modified timestamp for the from (old, first) filetoDate - The modified timestamp for the to(new, second) fileRhnPatchDiffWriter