public class RhnHtmlDiffWriter extends java.lang.Object implements DiffWriter, DiffVisitor
| Constructor and Description | 
|---|
| RhnHtmlDiffWriter(int lines) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | accept(ChangeHunk hunk)Standard visitor | 
| void | accept(DeleteHunk hunk)Standard visitor | 
| void | accept(InsertHunk hunk)Standard visitor | 
| void | accept(MatchHunk hunk)Standard visitor | 
| java.lang.String | getResult() | 
| void | setOnlyChanged(boolean onlyChangedIn) | 
| void | writeHunk(Hunk hunk)Write the diff, one hunk at a time. | 
public RhnHtmlDiffWriter(int lines)
lines - The number of lines in the longest file.
              Used to find out how many digits a line number should be.
              Ex: if lines is 12,  line one should be shown as 01, but
                  if lines is 100, line one should be shown as 001.public void writeHunk(Hunk hunk)
writeHunk in interface DiffWriterhunk - A collection of lines for a diff that represents a similar edit statepublic void accept(ChangeHunk hunk)
accept in interface DiffVisitorhunk - ChangeHunkpublic void accept(DeleteHunk hunk)
accept in interface DiffVisitorhunk - DeleteHunkpublic void accept(MatchHunk hunk)
accept in interface DiffVisitorhunk - MatchHunkpublic void accept(InsertHunk hunk)
accept in interface DiffVisitorhunk - InsertHunkpublic java.lang.String getResult()
public void setOnlyChanged(boolean onlyChangedIn)
onlyChangedIn - The onlyChanged to set.