org.outerj.daisy.diff
Class HtmlSaxDiffOutput
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HtmlSaxDiffOutput
public HtmlSaxDiffOutput(org.xml.sax.ContentHandler consumer)
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.