Package org.outerj.daisy.diff.html
Class HTMLDiffer
java.lang.Object
org.outerj.daisy.diff.html.HTMLDiffer
- All Implemented Interfaces:
Differ
Takes two or three
TextNodeComparator
instances, computes the difference
between them, marks the changes, and outputs a merged tree to a
HtmlSaxDiffOutput
instance.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
diff
(TextNodeComparator leftComparator, TextNodeComparator rightComparator) Compares two Node Trees.void
diff
(TextNodeComparator ancestorComparator, TextNodeComparator leftComparator, TextNodeComparator rightComparator) static double
score
(int... numbers)
-
Constructor Details
-
HTMLDiffer
-
-
Method Details
-
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)
-