Class ManifestComparator
java.lang.Object
org.eclipse.tycho.zipcomparator.internal.ManifestComparator
- All Implemented Interfaces:
ContentsComparator
@Component(role=ContentsComparator.class,
hint="manifest")
public class ManifestComparator
extends Object
implements ContentsComparator
-
Field Summary
FieldsFields 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.static booleanisEquivialentBreeCap(String bree, String cap) static booleanisEquivialentBreeCap(String bree, String capBase, String capChange) static booleanisEquivialentHeaderValue(String key, String base, String project) static booleanisIgnoredHeaderName(String name) static booleanbooleanCheck if this comparator matches the given name or extension
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
ManifestComparator
public ManifestComparator()
-
-
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
-
isIgnoredHeaderName
-
isIgnoredHeaderName
-
matches
Description copied from interface:ContentsComparatorCheck if this comparator matches the given name or extension- Specified by:
matchesin interfaceContentsComparator- Parameters:
extension- the extension or name to match- Returns:
trueif this comparator matches,falseotherwise
-
isEquivialentBreeCap
-
isEquivialentBreeCap
-
isEquivialentHeaderValue
-