Class ClassfileComparator
java.lang.Object
org.eclipse.tycho.zipcomparator.internal.ClassfileComparator
- All Implemented Interfaces:
ContentsComparator
@Component(role=ContentsComparator.class,
hint="class")
public class ClassfileComparator
extends Object
implements ContentsComparator
-
Nested Class Summary
Nested Classes -
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.booleanCheck if this comparator matches the given name or extension
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
ClassfileComparator
public ClassfileComparator()
-
-
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:
extension- the extension or name to match- Returns:
trueif this comparator matches,falseotherwise
-