Package org.outerj.daisy.diff.html
Class HTMLDiffer
- java.lang.Object
-
- org.outerj.daisy.diff.html.HTMLDiffer
-
- All Implemented Interfaces:
Differ
public class HTMLDiffer extends Object implements Differ
Takes two or threeTextNodeComparator
instances, computes the difference between them, marks the changes, and outputs a merged tree to aHtmlSaxDiffOutput
instance.
-
-
Constructor Summary
Constructors Constructor Description HTMLDiffer(DiffOutput dm)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
diff(TextNodeComparator leftComparator, TextNodeComparator rightComparator)
Compares two Node Trees.void
diff(TextNodeComparator ancestorComparator, TextNodeComparator leftComparator, TextNodeComparator rightComparator)
static double
score(int... numbers)
-
-
-
Constructor Detail
-
HTMLDiffer
public HTMLDiffer(DiffOutput dm)
-
-
Method Detail
-
diff
public void diff(TextNodeComparator ancestorComparator, TextNodeComparator leftComparator, TextNodeComparator rightComparator) throws SAXException
- Throws:
SAXException
-
diff
public void diff(TextNodeComparator leftComparator, TextNodeComparator rightComparator) throws SAXException
Compares two Node Trees.- Specified by:
diff
in interfaceDiffer
- Parameters:
leftComparator
- Root of the first tree.rightComparator
- Root of the second tree.- Throws:
SAXException
- something went wrong with parsing of the trees.
-
score
public static double score(int... numbers)
-
-