Package org.outerj.daisy.diff.tag
Class TagDiffer
- java.lang.Object
-
- org.outerj.daisy.diff.tag.TagDiffer
-
- All Implemented Interfaces:
TextDiffer
public class TagDiffer extends Object implements TextDiffer
Takes 2 AtomSplitters and computes the difference between them. Output is sent to a givenHTMLSaxDiffOutput
and tags are diffed internally on a second iteration. The results are processed as to combine small subsequent changes in to larger changes.
-
-
Constructor Summary
Constructors Constructor Description TagDiffer(TextDiffOutput output)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
diff(IAtomSplitter leftComparator, IAtomSplitter rightComparator)
Compares two Node Trees.
-
-
-
Constructor Detail
-
TagDiffer
public TagDiffer(TextDiffOutput output)
-
-
Method Detail
-
diff
public void diff(IAtomSplitter leftComparator, IAtomSplitter rightComparator) throws Exception
Compares two Node Trees.- Specified by:
diff
in interfaceTextDiffer
- Parameters:
leftComparator
- Root of the first tree.rightComparator
- Root of the second tree.- Throws:
Exception
- something went wrong with parsing of the trees.
-
-