com.jaxfront.core.util.diff
Class DiffToolPrint.UnifiedPrint

java.lang.Object
  extended by com.jaxfront.core.util.diff.DiffToolPrint.Base
      extended by com.jaxfront.core.util.diff.DiffToolPrint.ContextPrint
          extended by com.jaxfront.core.util.diff.DiffToolPrint.UnifiedPrint
Enclosing class:
DiffToolPrint

public static class DiffToolPrint.UnifiedPrint
extends DiffToolPrint.ContextPrint

Prints an edit script in context diff format. This and its 'unified' variation is used for source code patches.


Constructor Summary
DiffToolPrint.UnifiedPrint(java.lang.Object[] a, java.lang.Object[] b)
           
 
Method Summary
 void print_header(java.lang.String filea, java.lang.String fileb)
          Called to print the script header which identifies the files compared.
 
Methods inherited from class com.jaxfront.core.util.diff.DiffToolPrint.Base
change_letter, print_script, setOutput
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiffToolPrint.UnifiedPrint

public DiffToolPrint.UnifiedPrint(java.lang.Object[] a,
                                  java.lang.Object[] b)
Method Detail

print_header

public void print_header(java.lang.String filea,
                         java.lang.String fileb)
Description copied from class: DiffToolPrint.Base
Called to print the script header which identifies the files compared. The default does nothing (except set output to system.out if not otherwise set). Derived style classes can override to print the files compared in the format for that style.

Overrides:
print_header in class DiffToolPrint.ContextPrint