com.alkacon.diff
Interface I_DiffOutput

All Known Implementing Classes:
HtmlDiffOutput, TextDiffOutput

public interface I_DiffOutput

A DiffOutput instance must be provided to the Diff to handle the result of the diff process.


Method Summary
 void addChangedText(java.lang.String text)
          Adds some changed text to this output.
 void addUnchangedText(java.lang.String text)
          Adds some unchanged text to this output.
 void endLine()
          Ends the current output line.
 void skippedLines(int linesSkipped)
          Adds an indicator that some lines have been skipped.
 void startLine(DiffLineType type)
          Starts a new line of the given type.
 

Method Detail

addChangedText

void addChangedText(java.lang.String text)
                    throws java.lang.Exception
Adds some changed text to this output.

Parameters:
text - the changed text to add
Throws:
java.lang.Exception - in case something goes wrong

addUnchangedText

void addUnchangedText(java.lang.String text)
                      throws java.lang.Exception
Adds some unchanged text to this output.

Parameters:
text - the unchanged text to add
Throws:
java.lang.Exception - in case something goes wrong

endLine

void endLine()
             throws java.lang.Exception
Ends the current output line.

Throws:
java.lang.Exception - in case something goes wrong

skippedLines

void skippedLines(int linesSkipped)
                  throws java.lang.Exception
Adds an indicator that some lines have been skipped.

Parameters:
linesSkipped - the number of skipped lines
Throws:
java.lang.Exception - in case something goes wrong

startLine

void startLine(DiffLineType type)
               throws java.lang.Exception
Starts a new line of the given type.

Parameters:
type - the type of line to add
Throws:
java.lang.Exception - in case something goes wrong


Copyright © 2005-2011. All Rights Reserved.