|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.alkacon.diff.HtmlDiffOutput
public class HtmlDiffOutput
Outputs the diff result as HTML elements to a SAX ContentHandler.
| Constructor Summary | |
|---|---|
HtmlDiffOutput(org.xml.sax.ContentHandler handler,
I_HtmlDiffConfiguration config)
Creates a new HTML Diff output based on the given XML content handler. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HtmlDiffOutput(org.xml.sax.ContentHandler handler,
I_HtmlDiffConfiguration config)
handler - the content handler to useconfig - the configuration to use| Method Detail |
|---|
public void addChangedText(java.lang.String text)
throws java.lang.Exception
I_DiffOutput
addChangedText in interface I_DiffOutputtext - the changed text to add
java.lang.Exception - in case something goes wrongI_DiffOutput.addChangedText(java.lang.String)
public void addUnchangedText(java.lang.String text)
throws java.lang.Exception
I_DiffOutput
addUnchangedText in interface I_DiffOutputtext - the unchanged text to add
java.lang.Exception - in case something goes wrongI_DiffOutput.addUnchangedText(java.lang.String)
public void endLine()
throws java.lang.Exception
I_DiffOutput
endLine in interface I_DiffOutputjava.lang.Exception - in case something goes wrongI_DiffOutput.endLine()
public void skippedLines(int linesSkipped)
throws java.lang.Exception
I_DiffOutput
skippedLines in interface I_DiffOutputlinesSkipped - the number of skipped lines
java.lang.Exception - in case something goes wrongI_DiffOutput.skippedLines(int)
public void startLine(DiffLineType type)
throws java.lang.Exception
I_DiffOutput
startLine in interface I_DiffOutputtype - the type of line to add
java.lang.Exception - in case something goes wrongI_DiffOutput.startLine(com.alkacon.diff.DiffLineType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||