org.outerj.daisy.diff
Class HtmlSaxDiffOutput

java.lang.Object
  extended by org.outerj.daisy.diff.HtmlSaxDiffOutput
All Implemented Interfaces:
DiffOutput

public class HtmlSaxDiffOutput
extends java.lang.Object
implements DiffOutput

Outputs the diff result as HTML elements to a SAX ContentHandler. The startDocument and endDocument events are not generated by this class.


Constructor Summary
HtmlSaxDiffOutput(org.xml.sax.ContentHandler consumer)
           
 
Method Summary
 void addChangedText(java.lang.String text)
           
 void addUnchangedText(java.lang.String text)
           
 void endLine()
           
 void skippedLines(int linesSkipped)
           
 void startLine(DiffLineType type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlSaxDiffOutput

public HtmlSaxDiffOutput(org.xml.sax.ContentHandler consumer)
Method Detail

startLine

public void startLine(DiffLineType type)
               throws java.lang.Exception
Specified by:
startLine in interface DiffOutput
Throws:
java.lang.Exception

addUnchangedText

public void addUnchangedText(java.lang.String text)
                      throws java.lang.Exception
Specified by:
addUnchangedText in interface DiffOutput
Throws:
java.lang.Exception

addChangedText

public void addChangedText(java.lang.String text)
                    throws java.lang.Exception
Specified by:
addChangedText in interface DiffOutput
Throws:
java.lang.Exception

endLine

public void endLine()
             throws java.lang.Exception
Specified by:
endLine in interface DiffOutput
Throws:
java.lang.Exception

skippedLines

public void skippedLines(int linesSkipped)
                  throws java.lang.Exception
Specified by:
skippedLines in interface DiffOutput
Throws:
java.lang.Exception


Copyright © -2012 . All Rights Reserved.