Package org.outerj.daisy.diff.tag
Class TagSaxDiffOutput
- java.lang.Object
-
- org.outerj.daisy.diff.tag.TagSaxDiffOutput
-
- All Implemented Interfaces:
TextDiffOutput
public class TagSaxDiffOutput extends Object implements TextDiffOutput
Outputs the diff result as HTML elements to a SAX ContentHandler. The startDocument and endDocument events are not generated by this class. This version is used for tag based diff results.
-
-
Constructor Summary
Constructors Constructor Description TagSaxDiffOutput(ContentHandler consumer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAddedPart(String text)
Handles an addition.void
addClearPart(String text)
Handles normal text.void
addRemovedPart(String text)
Handles a deletion.
-
-
-
Constructor Detail
-
TagSaxDiffOutput
public TagSaxDiffOutput(ContentHandler consumer) throws SAXException
- Throws:
SAXException
-
-
Method Detail
-
addClearPart
public void addClearPart(String text) throws Exception
Handles normal text.- Specified by:
addClearPart
in interfaceTextDiffOutput
- Parameters:
text
- string that was not changed.- Throws:
Exception
- something went wrong.
-
addRemovedPart
public void addRemovedPart(String text) throws Exception
Handles a deletion.- Specified by:
addRemovedPart
in interfaceTextDiffOutput
- Parameters:
text
- string that was removed.- Throws:
Exception
- something went wrong.
-
addAddedPart
public void addAddedPart(String text) throws Exception
Handles an addition.- Specified by:
addAddedPart
in interfaceTextDiffOutput
- Parameters:
text
- string that was added.- Throws:
Exception
- something went wrong.
-
-