Class 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 given HTMLSaxDiffOutput and tags are diffed internally on a second iteration. The results are processed as to combine small subsequent changes in to larger changes.
    • Method Detail

      • diff

        public void diff​(IAtomSplitter leftComparator,
                         IAtomSplitter rightComparator)
                  throws Exception
        Compares two Node Trees.
        Specified by:
        diff in interface TextDiffer
        Parameters:
        leftComparator - Root of the first tree.
        rightComparator - Root of the second tree.
        Throws:
        Exception - something went wrong with parsing of the trees.