Class HtmlComparator
java.lang.Object
org.eclipse.tycho.zipcomparator.internal.HtmlComparator
- All Implemented Interfaces:
ContentsComparator
@Component(role=ContentsComparator.class,
hint="html")
public class HtmlComparator
extends Object
implements ContentsComparator
Compares html files for some special cases and fall back to simple textcompare otherwise
-
Field Summary
Fields inherited from interface org.eclipse.tycho.zipcomparator.internal.ContentsComparator
THRESHOLD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDelta(ComparatorInputStream baseline, ComparatorInputStream reactor, ArtifactComparator.ComparisonData data) Computes the delta for the givenInputStreams, the streams passed will support mark/reset for repeated reads.booleanCheck if this comparator matches the given name or extension
-
Constructor Details
-
HtmlComparator
public HtmlComparator()
-
-
Method Details
-
getDelta
public ArtifactDelta getDelta(ComparatorInputStream baseline, ComparatorInputStream reactor, ArtifactComparator.ComparisonData data) throws IOException Description copied from interface:ContentsComparatorComputes the delta for the givenInputStreams, the streams passed will support mark/reset for repeated reads.- Specified by:
getDeltain interfaceContentsComparator- Parameters:
baseline- the baseline datareactor- the reactor data or current project state- Returns:
- the
ArtifactDeltaorArtifactDelta.NO_DIFFERENCEif the content is semantically the same - Throws:
IOException
-
matches
Description copied from interface:ContentsComparatorCheck if this comparator matches the given name or extension- Specified by:
matchesin interfaceContentsComparator- Parameters:
nameOrExtension- the extension or name to match- Returns:
trueif this comparator matches,falseotherwise
-